/*
==============================================
Global Styles & Variables
==============================================
*/
:root {
    --brand-dark-blue: #36458E;
    --primary-accent: #0d6efd;
    --primary-accent-hover: #0b5ed7;
    --table-header-bg: #495057;
    --text-color-dark: #212529;
    --text-color-light: #6c757d;
    --status-green: #198754;
    --page-bg: #f8f9fa;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-color-dark);
}

/*
==============================================
Modern Header
==============================================
*/
header {
    background: #181f2a; /* Very dark blue/gray for modern look */
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="header-grid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23header-grid)"/></svg>');
    pointer-events: none;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

header .logo {
    order: 1;
    max-height: 55px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

header .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

header .nav-menu {
    order: 2;
}

.nav-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.nav-list a:hover::before {
    left: 100%;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-list a.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 700;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Burger Menu Button */
.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.burger-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.burger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/*
==============================================
Breadcrumb Navigation
==============================================
*/
.breadcrumb-container {
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding: 0.75rem 0;
}

.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-accent);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-accent-hover);
}

.breadcrumb-current .breadcrumb-link {
    color: var(--text-color-dark);
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
}

.breadcrumb-icon {
    font-size: 16px;
}

.breadcrumb-text {
    white-space: nowrap;
}

.breadcrumb-separator {
    color: var(--text-color-light);
    margin: 0 0.25rem;
    font-weight: 300;
}

/* Mobile Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-nav {
        padding: 0 0.5rem;
    }
    
    .breadcrumb-list {
        gap: 0.25rem;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-icon {
        font-size: 14px;
    }
    
    .breadcrumb-text {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .breadcrumb-separator {
        margin: 0 0.125rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-text {
        max-width: 60px;
    }
    
    .breadcrumb-link {
        padding: 0.125rem 0.25rem;
    }
    
    /* Extra small screen burger menu adjustments */
    .burger-menu-btn {
        padding: 0.25rem;
    }
    
    .burger-line {
        width: 20px;
        height: 2px;
    }
    
    .nav-list a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    header .container {
        padding: 0 0.5rem;
    }
    
    .logo {
        max-height: 40px;
    }
}

/* 
==============================================
Main Content & Dashboard Layout
==============================================
*/
main.container {
    max-width: 1200px;
    margin: 0 auto;
 
}

.dashboard-container {
    background-color: var(--container-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title-section {
    flex: 1;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color-dark);
    margin: 0 0 0.5rem 0;
}

.dashboard-subtitle {
    margin: 0;
    color: var(--text-color-light);
    font-size: 1rem;
    font-weight: 400;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 
==============================================
Search & Table
==============================================
*/
.search-container {
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1em;
    padding-left: 2.5rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-btn {
    padding: 0.65rem 1.25rem;
    background-color: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--primary-accent-hover);
}

.clear-search-btn {
    padding: 0.65rem 1rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.clear-search-btn:hover {
    background-color: #545b62;
    color: white;
    text-decoration: none;
}

.table-container {
    overflow-x: auto;
}

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

.data-table thead th {
    background-color: var(--table-header-bg);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

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

.status-active {
    color: var(--status-green);
    font-weight: 600;
}

.action-links a {
    color: var(--primary-accent);
    font-weight: 600;
    text-decoration: none;
    margin-right: 1rem;
}

.action-links a:hover {
    text-decoration: underline;
}

/* Action buttons in table */
.data-table .action-links button {
    background: none;
    border: none;
    padding: 0;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
}
.btn-edit { color: var(--primary-accent); }
.btn-toggle-status { color: #fd7e14; }
.btn-delete { color: #dc3545; }

.status-inactive {
    color: var(--text-color-light);
    font-weight: 600;
}

.table-footer {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-info {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-link {
    color: var(--primary-accent);
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, color 0.2s;
    font-weight: 600;
    min-width: 2.5rem;
    text-align: center;
}

.pagination-link:hover {
    background-color: #e9ecef;
    color: var(--primary-accent);
    text-decoration: none;
}

.pagination-link.active {
    background-color: var(--primary-accent);
    color: white;
    border-color: var(--primary-accent);
    cursor: default;
}

.pagination-ellipsis {
    color: var(--text-color-light);
    padding: 0.5rem 0.25rem;
    font-weight: 600;
}

/* 
==============================================
Public/Legacy Page Specific Styles
==============================================
*/
.hero {
    text-align: center;
    background: linear-gradient(120deg, #43b02a, #ffbe2f, #e04a5f, #2563eb, #181f2a, #43b02a);
    background-size: 1000% 1000%;
    animation: heroGradientMove 12s ease-in-out infinite;
    color: #fff;
    padding: 6rem 2rem;
    border-radius: 0 0 50px 50px;
    margin: 0 auto 4rem;
    box-shadow: 0 20px 60px rgba(24, 31, 42, 0.3);
    position: relative;
    overflow: hidden;
}

@keyframes heroGradientMove {
    0% { background-position: 0% 50%; }
    20% { background-position: 20% 80%; }
    40% { background-position: 40% 20%; }
    60% { background-position: 60% 80%; }
    80% { background-position: 80% 20%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    max-width: 1200px;
}

.feature {
    background: rgba(255,255,255,0.03);
    color: #fff;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #23272f, #353b48, #23272f);
    border-radius: 24px 24px 0 0;
}

.feature::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1);
}

.feature:hover::after {
    opacity: 1;
}

.feature h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #222831;
    margin: 2rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.feature h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #23272f, #353b48, #23272f);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.feature:hover h3::after {
    width: 80px;
}

.feature p {
    font-family: 'Poppins', sans-serif;
    color: #6c757d;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Feature icons */
.feature-icon {
    font-size: 4rem;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

/* Responsive adjustments for hero and features */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .feature {
        padding: 2rem 1.5rem;
    }
}

/* 
==============================================
Authentication Pages (Login/Register)
==============================================
*/
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
    background: var(--container-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.auth-logo img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-logo-inline {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.auth-header h2 {
    font-size: 1.75rem;
    color: var(--text-color-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-color-light);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-color-light);
}

.auth-footer-link a {
    color: var(--primary-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* 
==============================================
Modern Footer
==============================================
*/
footer {
    background: #181f2a; /* Very dark blue/gray for modern look */
    color: #fff;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="0" cy="0" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

footer .footer-section {
    max-width: 600px;
    text-align: center;
}



footer .footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

footer .footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer .footer-section a:hover {
    color: #667eea;
    transform: translateX(5px);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

footer .social-links a:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 
==============================================
Responsive Adjustments
==============================================
*/
@media (max-width: 768px) {
    header {
        position: relative;
    }
    
    header .container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        position: relative;
    }
    
    header .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    header .nav-menu {
        order: 2;
        margin-left: auto;
    }
    
    /* Burger Menu Mobile Styles */
    .burger-menu-btn {
        display: flex;
        order: 1;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        width: 240px !important;
        background-color: var(--brand-dark-blue);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-list.active {
        max-height: 400px;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: 1rem;
        border-radius: 0;
        border: none;
        text-align: left;
    }
    
    .nav-list a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border: none;
    }
    
    /* Dashboard Header Mobile */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dashboard-title-section {
        text-align: center;
        width: 100%;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 0.9rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .pagination-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        min-width: 2rem;
    }
}

/* 
==============================================
New V2 Authentication Page
==============================================
*/
.auth-page {
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 56px;
   
}

.auth-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-title {
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #333;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 0.5rem 0.25rem;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.3s;
}
.input-group input:focus {
    outline: none;
    border-color: #555;
}

.form-options {
    text-align: right;
    margin: -1rem 0 1.5rem 0;
}
.forgot-password {
    font-size: 0.9rem;
    color: #777;
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-auth:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.auth-switch {
    margin-top: 2rem;
    color: #777;
}
.auth-switch a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* 
==============================================
Modal Styles
==============================================
*/
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-color-dark);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.5rem;
}
.modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.modal-body .form-group input,
.modal-body .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.modal-body .form-group input:focus,
.modal-body .form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* 
==============================================
Content Type Badges
==============================================
*/
.content-type-video {
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-type-game {
    background: #4834d4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-type-image {
    background: #00b894;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-type-mobile_apps {
    background: #fdcb6e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 
==============================================
QR Code Creation Form
==============================================
*/
.qr-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .qr-form {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* 
==============================================
QR Info Section
==============================================
*/
.qr-info {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-row span {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.info-row strong {
    color: var(--text-color-dark);
}

/* Responsive adjustments for info row */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 
==============================================
V2 Form Styles (as per image)
==============================================
*/
.form-container-v2 {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 850px;
    margin: 2rem auto;
}

.qr-form-v2 .form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #004d40; /* Dark green for labels */
    margin-bottom: 0.75rem;
}

.qr-form-v2 .content-type-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.qr-form-v2 .content-type-radios label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.qr-form-v2 .content-type-radios input[type="radio"] {
    accent-color: #00796b;
}

.qr-form-v2 .form-group {
    margin-bottom: 2rem;
}

.qr-form-v2 .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.qr-form-v2 input[type="text"],
.qr-form-v2 input[type="url"],
.qr-form-v2 textarea,
.qr-form-v2 select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    background-color: transparent;
    transition: border-color 0.3s;
    border-radius: 0; /* Important for the bottom-border look */
}

.qr-form-v2 input[type="text"]:focus,
.qr-form-v2 input[type="url"]:focus,
.qr-form-v2 textarea:focus,
.qr-form-v2 select:focus {
    outline: none;
    border-color: #00796b;
}

.qr-form-v2 textarea {
    resize: vertical;
    min-height: 100px;
}

.qr-form-v2 input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
}
.qr-form-v2 input[type="file"]:hover {
    border-color: #00796b;
}

.qr-form-v2 ::placeholder {
    color: #aaa;
}

.qr-form-v2 select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    padding-right: 2rem; /* Make space for arrow */
}

.form-actions {
    justify-content: flex-start;
}

/*
==============================================
Guide Steps Builder
==============================================
*/
.guide-steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-step-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guide-step-row .guide-description-input {
    flex-grow: 1;
}

.guide-step-row .btn-upload {
    background: #e0f2f1;
    color: #00796b;
    border: 1px solid #00796b;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.guide-step-row .guide-upload-wrapper {
    position: relative;
}
.guide-step-row .guide-image-input {
    display: none; /* Hide the actual file input */
}
.guide-step-row .btn-action {
    background: #007bff;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.guide-step-row .btn-delete-step {
    background: #f1f1f1;
    color: #dc3545;
    border: 1px solid #ddd;
}
.guide-step-row .image-preview {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    object-fit: cover;
    margin-left: -48px; /* Overlap the upload button */
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/*
==============================================
Multi-Image Upload Section
==============================================
*/
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px dashed #ccc;
    border-radius: 5px;
}
.image-upload-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.image-upload-row input[type="text"] {
    flex-grow: 1;
    min-width: 200px;
}
.image-upload-row .image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.image-upload-row .image-file-input {
    display: none;
}
.image-upload-row .file-name {
    font-size: 0.9rem;
    color: #666;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.image-upload-row .image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-left: 0.5rem;
}

.guide-upload-row .image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-left: 0.5rem;
    display: block;
}

/*
==============================================
App Store Link Section
==============================================
*/
.app-store-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.app-store-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* QR Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-body {
    display: flex;
    gap: 2rem;
}

.qr-code-container {
    flex: 0 0 220px;
    text-align: center;
    background: #f7f7f7;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

#modal-download-btn,
#modal-qr-link {
    width: 100%;
    background-color: var(--primary-accent);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

#modal-download-btn:hover,
#modal-qr-link:hover {
    background-color: var(--primary-accent-hover);
}

.qr-details-container {
    flex-grow: 1;
}

.qr-details-container h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #333;
}

.details-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    font-size: 0.95rem;
}

.details-grid span:nth-child(odd) {
    font-weight: 600;
    color: #555;
}

.details-grid span:nth-child(even) {
    color: #333;
}

#modal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#modal-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

#modal-status.status-active::before {
    background-color: #27ae60;
}

#modal-status.status-inactive::before {
    background-color: #e74c3c;
}

/* Page Views Badge */
#modal-page-views {
    color: #2d5a2d;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 40px;
    text-align: left;
    position: relative;
}

#modal-page-views::before {
    content: '👁';
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .qr-code-container {
        flex: 1;
        width: auto;
    }
}

/*
==============================================
Beautiful Select Styling
==============================================
*/
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color: #374151;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

select:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Select option styling */
select option {
    padding: 12px 16px;
    background-color: #fff;
    color: #374151;
    font-size: 1rem;
}

select option:hover {
    background-color: #f3f4f6;
}

select option:checked {
    background: linear-gradient(135deg, var(--primary-accent), #0056b3);
    color: white;
}

/* Select with label styling */
.form-group select {
    margin-top: 4px;
}

.form-group label + select {
    margin-top: 8px;
}

/* Custom select wrapper for additional styling */
.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b7280;
    pointer-events: none;
    transition: all 0.3s ease;
}

.select-wrapper:hover::after {
    border-top-color: #374151;
}

.select-wrapper select:focus + .select-wrapper::after {
    border-top-color: var(--primary-accent);
} 