/**
 * Dashboard Stylesheet
 * Modern, responsive design matching main website theme
 */

/* ===============================================
   ROOT VARIABLES & BASE STYLES
   =============================================== */
:root {
    --primary-blue: #003366;
    --primary-green: #2ecc71;
    --secondary-blue: #1e4558;
    --coral-red: #FF6F61;
    --soft-gray: #f8f9fa;
    --charcoal: #333333;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #003366, #2ecc71);
    --gradient-secondary: linear-gradient(135deg, #2c5f7d, #1e4558);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ===============================================
   AUTH PAGES (LOGIN, REGISTER, FORGOT PASSWORD)
   =============================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003366 0%, #1e4558 50%, #2ecc71 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Floating shapes animation */
.auth-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-green);
    top: -100px;
    right: -100px;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--white);
    bottom: -50px;
    left: -50px;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--coral-red);
    top: 50%;
    left: 10%;
    animation: float-shape 12s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-green);
    bottom: 20%;
    right: 10%;
    animation: float-shape 7s ease-in-out infinite reverse;
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    animation: slideUp 0.8s ease-out;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 10px;
}

.auth-logo p {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-form label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 20px;
    transition: var(--transition);
}

.auth-form input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.auth-form input:focus + i,
.auth-form .input-wrapper:hover i {
    color: var(--primary-blue);
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Auth Links */
.auth-links {
    margin-top: 25px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-green);
}

.auth-links .divider {
    color: var(--light-gray);
    margin: 0 10px;
}

/* Remember Me & Forgot Password Row */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

.remember-me label {
    margin-bottom: 0;
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.forgot-link {
    color: var(--coral-red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-blue);
}

/* Social Login */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--light-gray);
}

.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.social-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 20px;
}

.social-btn:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--primary-green);
}

.social-btn.google:hover { color: #DB4437; }
.social-btn.facebook:hover { color: #4267B2; }
.social-btn.twitter:hover { color: #1DA1F2; }

/* ===============================================
   DASHBOARD LAYOUT
   =============================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #003366 0%, #1e4558 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.sidebar-logo i {
    font-size: 40px;
    color: var(--primary-green);
}

.sidebar-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    transform: scaleY(0);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.2), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(0);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 22px;
    margin-right: 15px;
    transition: var(--transition);
}

.nav-link:hover i {
    transform: scale(1.2);
    color: var(--primary-green);
}

.nav-link .dropdown-icon {
    margin-left: auto;
    font-size: 18px;
    transition: var(--transition);
}

.nav-item.open .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease;
}

.nav-item.open .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu .nav-link {
    padding: 12px 25px 12px 60px;
    font-size: 0.95rem;
}

.dropdown-menu .nav-link i {
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: var(--transition);
    width: calc(100% - 280px);
    min-width: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.header-icon:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.header-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--coral-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50px;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--soft-gray);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
}

.user-role {
    font-size: 0.85rem;
    color: #666;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), transparent);
    border-radius: 0 0 0 100%;
    z-index: 0;
    pointer-events: none;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 15px;
}

.stat-card .stat-icon.blue { background: var(--gradient-primary); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.stat-card .stat-icon.coral { background: linear-gradient(135deg, #FF6F61, #ff5252); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-card .stat-label {
    color: #666;
    font-size: 1rem;
}

.stat-card .stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.stat-trend.up { color: var(--primary-green); }
.stat-trend.down { color: var(--coral-red); }

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text {
    flex: 1;
    min-width: 200px;
}

.welcome-heading {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.welcome-heading .highlight {
    color: var(--primary-green);
}

.welcome-subtext {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--soft-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.activity-item:hover {
    background: #eef2f5;
}

.activity-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon.green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.activity-icon.blue { background: linear-gradient(135deg, #003366, #2ecc71); }
.activity-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.activity-icon.coral { background: linear-gradient(135deg, #FF6F61, #ff5252); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.activity-desc {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Content Cards */
.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.card-body {
    padding: 25px;
}

/* Form Styles in Dashboard */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--soft-gray);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.data-table th {
    background: var(--soft-gray);
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
}

.data-table tr:hover {
    background: var(--soft-gray);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-badge.pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.status-badge.inactive {
    background: rgba(255, 111, 97, 0.15);
    color: var(--coral-red);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ===============================================
   RESPONSIVE STYLES
   =============================================== */

/* Tablet */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-header {
        padding: 12px 15px;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .user-info {
        display: none;
    }

    .dashboard-content {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .stat-card {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Override inline grid styles for tablet */
    .card-body [style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .dashboard-wrapper {
        width: 100%;
        max-width: 100vw;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .dashboard-header {
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-content {
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .content-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px;
    }

    .auth-card {
        padding: 40px 25px;
        margin: 15px;
        max-width: 100%;
    }

    .auth-logo i {
        font-size: 50px;
    }

    .auth-logo h1 {
        font-size: 1.7rem;
    }

    .auth-form input {
        padding: 14px 14px 14px 45px;
        font-size: 1rem;
    }

    .auth-btn {
        padding: 14px;
        font-size: 1rem;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .stat-card {
        padding: 18px 15px;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .stat-card .stat-value {
        font-size: 1.6rem;
        display: block !important;
    }

    .stat-card .stat-label {
        font-size: 0.95rem;
        display: block !important;
    }

    .stat-card .stat-trend {
        font-size: 0.85rem;
        display: flex !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
        padding: 12px !important;
    }

    .card-body {
        padding: 12px !important;
    }

    .header-right {
        gap: 6px;
    }

    .header-icon {
        width: 38px;
        height: 38px;
    }

    /* Welcome section mobile */
    .welcome-section {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }

    .welcome-heading {
        font-size: 1.4rem;
    }

    .welcome-subtext {
        font-size: 0.95rem;
    }

    .welcome-section .btn {
        width: 100%;
        justify-content: center;
    }

    /* Activity items mobile */
    .activity-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .activity-content {
        flex: 1 1 calc(100% - 55px);
        min-width: calc(100% - 55px);
    }

    .activity-desc {
        white-space: normal;
        font-size: 0.85rem;
    }

    .activity-time {
        width: 100%;
        text-align: right;
        font-size: 0.8rem;
        margin-top: -5px;
    }

    /* Override inline grid styles */
    .card-body [style*="grid-template-columns"],
    .content-card [style*="grid-template-columns"],
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Override inline flex layouts */
    .card-body > div[style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* Quick actions responsive */
    .quick-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .quick-action-btn {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .quick-action-btn i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }

    .data-table {
        min-width: 500px;
    }

    /* Profile header */
    .profile-header {
        padding: 25px 15px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    /* Content card margins */
    .content-card {
        margin-bottom: 15px;
    }

    /* Welcome section text */
    .content-card h2 {
        font-size: 1.3rem !important;
    }

    .content-card p {
        font-size: 0.95rem !important;
    }

    /* Button in welcome section */
    .content-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* Settings toggles */
    .settings-item,
    [style*="display: flex"][style*="align-items: center"][style*="gap"] {
        flex-wrap: wrap;
    }

    /* Card body padding */
    .card-body {
        padding: 20px 15px;
    }

    /* Wallet balance card */
    .wallet-balance,
    [style*="padding: 30px"] {
        padding: 20px !important;
    }

    /* Action buttons in tables */
    .action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    /* Status badges inline */
    .status-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
        white-space: nowrap;
    }

    /* FAQ items */
    .faq-item {
        padding: 15px !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 10px !important;
        width: 100% !important;
    }

    .content-card {
        border-radius: 10px;
        margin-bottom: 12px !important;
    }

    .card-header {
        padding: 10px !important;
    }

    .card-body {
        padding: 10px !important;
    }

    .stats-grid {
        gap: 10px !important;
    }

    .stat-card {
        padding: 15px 12px !important;
        border-radius: 10px;
    }

    .stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        border-radius: 10px;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .stat-card .stat-label {
        font-size: 0.9rem;
    }

    .stat-card .stat-trend {
        font-size: 0.8rem;
    }

    .auth-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .auth-logo i {
        font-size: 45px;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .auth-logo p {
        font-size: 0.9rem;
    }

    .auth-form label {
        font-size: 0.95rem;
    }

    .auth-form input {
        padding: 12px 12px 12px 42px;
        font-size: 0.95rem;
    }

    .auth-btn {
        padding: 13px;
        font-size: 0.95rem;
    }

    .auth-options {
        flex-direction: column;
        gap: 15px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

    .dashboard-header {
        padding: 10px 12px;
    }

    .page-title {
        font-size: 1rem;
    }

    .sidebar {
        width: 260px;
    }

    .nav-link {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .nav-link i {
        font-size: 20px;
        margin-right: 12px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .btn-group,
    [style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column !important;
        width: 100%;
    }

    .btn-group .btn,
    [style*="display: flex"][style*="gap: 10px"] .btn {
        width: 100% !important;
    }

    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    /* Stats cards smaller */
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.9rem;
    }

    /* Welcome section smaller */
    .welcome-heading {
        font-size: 1.2rem;
    }

    .welcome-subtext {
        font-size: 0.9rem;
    }

    /* Activity items smaller */
    .activity-item {
        padding: 12px;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .activity-icon i {
        font-size: 18px;
    }

    .activity-title {
        font-size: 0.9rem;
    }

    .activity-desc {
        font-size: 0.8rem;
    }

    /* Quick actions 2 column */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Card titles */
    .card-title {
        font-size: 1.1rem;
    }

    /* Override inline padding */
    [style*="padding: 25px"],
    [style*="padding: 30px"],
    [style*="padding: 40px"] {
        padding: 15px !important;
    }

    /* Override inline margin-top */
    [style*="margin-top: 30px"],
    [style*="margin-top: 25px"] {
        margin-top: 15px !important;
    }

    /* Grid gaps */
    [style*="gap: 25px"],
    [style*="gap: 20px"] {
        gap: 12px !important;
    }

    /* Form control */
    .form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Select in header */
    .card-header select.form-control {
        width: 100% !important;
        margin-top: 10px;
    }

    /* Content card margin */
    .content-card {
        margin-bottom: 15px;
    }

    /* Profile avatar smaller */
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-email {
        font-size: 0.9rem;
    }

    /* File upload */
    .file-upload {
        padding: 25px 15px;
    }

    .file-upload i {
        font-size: 40px;
    }

    /* Pagination */
    [style*="display: flex"][style*="justify-content: space-between"][style*="flex-wrap"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    /* Action buttons group */
    td .action-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    /* Download report cards */
    [style*="display: flex"][style*="justify-content: space-between"][style*="align-items: center"] {
        flex-direction: column !important;
        text-align: center;
        gap: 12px !important;
    }

    /* Transaction/Order items with product info */
    [style*="display: flex"][style*="align-items: center"][style*="gap: 10px"] {
        flex-wrap: wrap;
    }

    /* Icon boxes in grids */
    [style*="width: 40px"][style*="height: 40px"] {
        width: 35px !important;
        height: 35px !important;
    }

    /* Material icons in inline styles */
    [style*="font-size: 40px"] {
        font-size: 32px !important;
    }

    /* H4 in cards */
    .card-body h4,
    [style*="color: #003366"][style*="margin-bottom: 5px"] {
        font-size: 1.1rem !important;
    }

    /* Support contact cards */
    .support-contact,
    [style*="text-align: center"][style*="padding"] {
        padding: 15px !important;
    }
}

/* Samsung Galaxy S8+ and similar (360px) */
@media (max-width: 400px) {
    .dashboard-wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .dashboard-header {
        padding: 8px 10px !important;
    }

    .header-icon {
        width: 34px;
        height: 34px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .dashboard-content {
        padding: 10px !important;
    }

    .content-card {
        margin-bottom: 10px;
    }

    .welcome-section {
        padding: 12px !important;
    }

    .welcome-heading {
        font-size: 1.2rem !important;
    }

    .welcome-subtext {
        font-size: 0.85rem !important;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .quick-action-btn {
        padding: 12px 6px !important;
        font-size: 0.75rem !important;
    }

    .quick-action-btn i {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    .activity-item {
        padding: 10px !important;
    }

    .activity-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .activity-title {
        font-size: 0.85rem !important;
    }

    .activity-desc {
        font-size: 0.75rem !important;
    }

    .activity-time {
        font-size: 0.7rem !important;
    }

    .card-title {
        font-size: 1rem !important;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .dashboard-content {
        padding: 8px !important;
    }

    .content-card {
        margin-bottom: 10px !important;
        border-radius: 8px;
    }

    .card-header {
        padding: 10px 8px !important;
    }

    .card-body {
        padding: 10px 8px !important;
    }

    .stats-grid {
        gap: 8px !important;
    }

    /* Stat cards compact */
    .stat-card {
        padding: 12px 10px !important;
        border-radius: 8px;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 20px;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .stat-card .stat-label {
        font-size: 0.85rem;
    }

    .stat-card .stat-trend {
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .auth-card {
        padding: 25px 15px;
        margin: 10px;
    }

    .auth-logo h1 {
        font-size: 1.3rem;
    }

    .auth-logo p {
        font-size: 0.85rem;
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        transform: scale(0.5);
    }

    /* Quick actions single column on very small screens */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .quick-action-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .quick-action-btn i {
        font-size: 20px;
    }

    /* Page title */
    .page-title {
        font-size: 0.95rem;
    }

    /* Buttons full width */
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Table */
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .data-table {
        min-width: 500px;
    }

    /* Card title */
    .card-title {
        font-size: 1rem;
    }

    /* Form elements */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Sidebar narrower */
    .sidebar {
        width: 240px;
    }

    .sidebar-logo h2 {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    /* Profile */
    .profile-header {
        padding: 20px 10px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .profile-name {
        font-size: 1.2rem;
    }

    /* Status badge smaller */
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Action buttons */
    .action-btn,
    td .action-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .action-btn i {
        font-size: 16px;
    }

    /* Header icons */
    .header-icon {
        width: 35px;
        height: 35px;
    }

    .header-icon i {
        font-size: 18px;
    }

    /* User avatar in header */
    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Landscape phones */
@media (max-width: 680px) and (orientation: landscape) {
    .auth-wrapper {
        padding: 15px;
    }

    .auth-card {
        max-height: 90vh;
        overflow-y: auto;
    }

    .dashboard-wrapper {
        min-height: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }

    .stat-card:active {
        transform: scale(0.98);
    }

    .nav-link:active {
        background: rgba(46, 204, 113, 0.15);
    }

    .quick-action-btn:active {
        transform: scale(0.95);
    }

    /* Larger touch targets */
    .action-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .header-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===============================================
   MOBILE-SPECIFIC FIXES FOR INLINE STYLES
   =============================================== */
@media (max-width: 768px) {
    /* Fix grid layouts with inline styles */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix flex space-between layouts */
    div[style*="justify-content: space-between"]:not(.dashboard-header):not(.card-header) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    /* Fix row flex layouts */
    div[style*="flex-direction: row"] {
        flex-direction: column !important;
    }
    
    /* Padding adjustments */
    div[style*="padding: 40px"],
    div[style*="padding: 35px"] {
        padding: 20px !important;
    }
    
    /* Wallet/Balance cards text */
    div[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    /* Summary stat boxes */
    div[style*="text-align: center"][style*="padding: 25px"],
    div[style*="text-align: center"][style*="padding: 20px"] {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce grid gaps */
    div[style*="display: grid"] {
        gap: 10px !important;
    }
    
    /* Reduce large text sizes */
    div[style*="font-size: 2"],
    h2[style*="font-size: 2"],
    h3[style*="font-size: 1.8"] {
        font-size: 1.4rem !important;
    }
    
    /* Icon sizes in boxes */
    div[style*="font-size: 40px"] i,
    i[style*="font-size: 40px"],
    i[style*="font-size: 50px"] {
        font-size: 28px !important;
    }
    
    /* Border radius consistency */
    div[style*="border-radius: 20px"],
    div[style*="border-radius: 15px"] {
        border-radius: 12px !important;
    }
}

@media (max-width: 375px) {
    /* Minimal padding on very small screens */
    div[style*="padding"] {
        padding: 12px !important;
    }
    
    /* Gap reductions */
    div[style*="gap: 20px"],
    div[style*="gap: 15px"] {
        gap: 8px !important;
    }
    
    /* Font sizes */
    h2, h3 {
        font-size: 1.1rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Success/Error Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-error {
    background: rgba(255, 111, 97, 0.15);
    color: var(--coral-red);
    border: 1px solid rgba(255, 111, 97, 0.3);
}

/* Profile Page Specific */
.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    color: var(--white);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-email {
    opacity: 0.9;
    font-size: 1rem;
}

/* KYC Page */
.kyc-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.kyc-status.verified {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.kyc-status.pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.kyc-status.not-verified {
    background: rgba(255, 111, 97, 0.15);
    color: var(--coral-red);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-green);
    background: rgba(46, 204, 113, 0.05);
}

.file-upload i {
    font-size: 50px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.file-upload p {
    color: #666;
    font-size: 1rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    padding: 20px;
    background: var(--soft-gray);
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--charcoal);
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
}

.quick-action-btn i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

/* Logout button style */
.logout-link {
    color: var(--coral-red) !important;
}

.logout-link:hover {
    background: rgba(255, 111, 97, 0.1) !important;
}

.logout-link::before {
    background: var(--coral-red) !important;
}
