﻿/* GBS Mutual Bank - Professional Banking Website Styles */

/* Import Google Fonts - Inter for enhanced typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for consistent colors - Enhanced from GBS Bank branding */
:root {
    --gbs-blue: #1e3a8a;
    --gbs-blue-light: #3b82f6;
    --gbs-blue-dark: #1e2a5e;
    --gbs-blue-accent: #2563eb;
    --gbs-gold: #d97706;
    --gbs-gold-light: #f59e0b;
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-grey: #f1f5f9;
    --bg-grey-light: #f9fafb;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    --success-green: #059669;
    --error-red: #dc2626;
    --warning-orange: #d97706;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Enhanced with GBS Bank styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Layout containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar styles - Enhanced with GBS Bank styling */
.sidebar {
    width: 280px;
    border-right: 1px solid var(--border-light);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    left: 0;
    top: 0;
    background-color: var(--bg-white);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gbs-blue) 0%, var(--gbs-blue-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--gbs-blue);
    margin: 0;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin: 0;
}

/* Navigation */
.nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .nav-item:hover {
        background-color: var(--bg-grey);
        color: var(--text-dark);
    }

    .nav-item.active {
        background: linear-gradient(90deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
        color: var(--gbs-blue);
        border-left-color: var(--gbs-blue);
        font-weight: 600;
        box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.1);
    }

    .nav-item i {
        display: none;
    }

    .nav-item .arrow {
        display: none;
    }

/* User info in sidebar */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    color: var(--text-medium);
    font-size: 0.9rem;
}

    .user-info i {
        margin-right: 0.5rem;
    }

/* Main content area */
.main-content {
    flex: 1;
    margin-left: 280px;
    background-color: var(--bg-light);
    min-height: 100vh;
    overflow-x: auto; /* ADD THIS LINE */
    overflow-y: auto; /* ADD THIS LINE */
    width: calc(100% - 280px); /* ADD THIS LINE */
}

/* Header bar - Enhanced with GBS Bank styling */
.header {
    background: linear-gradient(90deg, var(--bg-white) 0%, var(--bg-grey-light) 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-logo {
    flex: 1;
}

.logo-banner {
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

    .logo-banner .logo-text {
        color: var(--gbs-blue);
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email-display {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.user-dropdown {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    border: 2px solid var(--border-medium);
    background-color: var(--bg-white);
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

    .user-dropdown:hover {
        background-color: var(--bg-grey);
        border-color: var(--gbs-blue);
        box-shadow: var(--shadow-md);
    }

.user-id {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.user-dropdown i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Content area */
.content {
    padding: 2rem;
    background-color: var(--bg-light);
}

.page-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gbs-blue) 0%, var(--gbs-blue-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gbs-blue-dark);
    font-weight: 600;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--gbs-blue-dark) 0%, var(--gbs-blue) 100%);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-medium);
}

    .btn-secondary:hover {
        background-color: var(--bg-grey);
    }

.btn-success {
    background-color: var(--success-green);
    color: white;
}

.btn-danger {
    background-color: var(--error-red);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables - Enhanced with GBS Bank styling */
.table-container {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow-x: auto; /* KEEP THIS */
    overflow-y: visible; /* ADD THIS LINE */
    border: 1px solid var(--border-light);
    position: relative; /* ADD THIS LINE */
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px; /* ADD THIS LINE - adjust value based on your table width */
}

    .table th {
        background: var(--gbs-blue);
        color: white;
        padding: 1.5rem 1rem;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
        border: none;
        position: relative;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

        .table th:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 20%;
            right: 0;
            width: 1px;
            height: 60%;
            background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
        }

        .table thead tr:first-child th:first-child {
            border-top-left-radius: 8px;
        }

        .table thead tr:first-child th:last-child {
            border-top-right-radius: 8px;
        }

    .table td {
        padding: 1.25rem 1rem;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-dark);
        font-weight: 500;
    }

    .table tbody tr:hover {
        background-color: var(--bg-grey);
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background-color: var(--bg-white);
    font-weight: 500;
}

    .form-input:focus {
        outline: none;
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
        background-color: var(--bg-white);
    }

    .form-input:hover {
        border-color: var(--gbs-blue-light);
    }

    .form-input:hover:focus {
        border-color: transparent;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Cards - Enhanced with GBS Bank styling */
.card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-1px);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Login page specific styles */
.login-page {
    display: flex;
    min-height: 100vh;
}

.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    padding: 2rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

    .login-form h1 {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .login-form .subtitle {
        text-align: center;
        color: var(--text-medium);
        margin-bottom: 2rem;
    }

    .login-form .form-group {
        margin-bottom: 1.5rem;
    }

    .login-form .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

.login-links {
    text-align: center;
    margin-top: 1rem;
}

    .login-links a {
        color: var(--gbs-blue);
        text-decoration: none;
    }

        .login-links a:hover {
            text-decoration: underline;
        }

.login-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

    .login-footer a {
        color: var(--text-medium);
        text-decoration: none;
        margin-right: 1rem;
    }

        .login-footer a:hover {
            color: var(--gbs-blue);
        }

/* Promotional section - Enhanced with GBS Bank styling */
.promotional-section {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e2a5e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .promotional-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        z-index: 1;
    }

.promotional-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    max-width: 500px;
    padding: 2rem;
}

.promotional-logo {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8fafc 100%);
    color: var(--gbs-blue);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

    .promotional-logo h1 {
        color: var(--gbs-blue);
        margin-bottom: 0.5rem;
    }

    .promotional-logo p {
        color: var(--text-medium);
        margin: 0;
    }

.promotional-tagline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promotional-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
}

/* Registration page specific styles */
.registration-page {
    display: flex;
    min-height: 100vh;
}

.registration-sidebar {
    width: 400px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    color: white;
}

    .registration-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leopard" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leopard)"/></svg>');
        opacity: 0.1;
        z-index: 1;
    }

.registration-sidebar-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.registration-progress {
    margin-top: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

    .progress-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 15px;
        top: 40px;
        width: 2px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .progress-step.active::after {
        background-color: var(--success-green);
    }

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 600;
}

.progress-step.active .step-number {
    background-color: var(--success-green);
}

.step-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.registration-form-section {
    flex: 1;
    background-color: var(--bg-white);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-form {
    width: 100%;
    max-width: 800px;
}

    .registration-form h1 {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .registration-form .subtitle {
        text-align: center;
        color: var(--text-medium);
        margin-bottom: 2rem;
    }

/* Responsive design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .login-page,
    .registration-page {
        flex-direction: column;
    }

    .promotional-section,
    .registration-sidebar {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.7rem;
    }

    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Enhanced animations and transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

/* Enhanced focus states */
.btn:focus,
.form-input:focus,
.nav-item:focus {
    outline: 2px solid var(--gbs-blue);
    outline-offset: 2px;
}

/* Enhanced hover effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Utility classes */

.consistent-hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.w-100 {
    width: 100%;
}

/* Account sections - Collapsible styling */
.account-section {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.account-header {
    background: linear-gradient(90deg, var(--bg-grey-light) 0%, var(--bg-white) 100%);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

    .account-header:hover {
        background: linear-gradient(90deg, var(--bg-grey) 0%, var(--bg-grey-light) 100%);
    }

.account-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.collapse-icon {
    background-color: var(--gbs-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.account-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.account-actions {
    padding: 1rem 1.5rem;
    background-color: var(--bg-grey-light);
    display: flex;
    gap: 1.5rem;
}

.action-link {
    color: var(--gbs-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
}

    .action-link:hover {
        color: var(--gbs-blue-dark);
        text-decoration: underline;
    }

.account-content {
    padding: 0;
    background-color: var(--bg-white);
}

.action-arrow {
    color: var(--gbs-blue);
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-arrow:hover {
        color: var(--gbs-blue-dark);
        transform: translateX(2px);
    }

/* Icon styles using Unicode symbols - Navigation icons removed */
.icon-user::before {
    content: "👤";
}

.icon-refresh::before {
    content: "↻";
}

.icon-download::before {
    content: "⬇";
}

.icon-eye::before {
    content: "👁";
}

.icon-plus::before {
    content: "+";
}

.icon-arrow-down::before {
    content: "⌄";
}
