/* css/styles.css - Professional Banking System */
:root {
    --primary: #003366;
    --primary-dark: #002244;
    --secondary: #4CAF50;
    --accent: #FFD700;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --white: #ffffff;
    --sidebar-width: 280px;
    --header-height: 70px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.2);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Lao', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #f0f2f5;
    color: var(--dark);
}

/* Professional Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(-45deg);
    top: -50%;
    left: -50%;
}

.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.2);
}

.bank-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.bank-logo h1 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.bank-logo h1 span {
    color: var(--secondary);
    font-size: 0.9rem;
    display: block;
    font-weight: 400;
    letter-spacing: 1px;
}

.motto {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Professional Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: var(--primary);
    color: var(--white);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    border-left-color: var(--secondary);
}

.nav-item.active {
    background: #e3f2fd;
    border-left-color: var(--primary);
    font-weight: 600;
}

.nav-item i {
    width: 24px;
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8f9fa;
}

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-message {
    font-size: 1.2rem;
}

.welcome-message strong {
    color: var(--primary);
}

.datetime-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.current-time {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.timezone {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-boss {
    background: var(--warning);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards and Containers */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.card-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Customer Account Cards */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.account-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.account-card.selected {
    border: 3px solid var(--primary);
    background: #e3f2fd;
}

.account-branch {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.account-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.account-currency {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.account-balance {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0.5rem 0;
}

.account-type {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Currency Flags */
.currency-flag {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background-size: cover;
}

.currency-flag.lak { background: #f1c40f; }
.currency-flag.usd { background: #27ae60; }
.currency-flag.thb { background: #3498db; }
.currency-flag.jpy { background: #e74c3c; }
.currency-flag.cny { background: #e67e22; }
.currency-flag.eur { background: #9b59b6; }

/* Transaction Forms */
.transaction-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}

.form-control.error {
    border-color: var(--danger);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background: var(--primary);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Professional Receipt */
.receipt-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.receipt-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--gray);
}

.receipt-bank-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.receipt-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--secondary);
}

.receipt-details {
    margin: 1.5rem 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #dee2e6;
}

.receipt-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    margin: 1rem 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--gray);
    font-size: 0.9rem;
    color: var(--gray);
}

/* Export/Import Panel */
.data-management {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.export-card {
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.export-card:hover {
    border-color: var(--primary);
    background: #e3f2fd;
}

.export-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Branch Selector */
.branch-selector {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.branch-tag {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.branch-tag:hover,
.branch-tag.active {
    background: var(--primary);
    color: var(--white);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

.notification.success { border-left-color: var(--secondary); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}