/* ============================================
   Dashboard Admin Panel Styles
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background-color: #202434;
    color: #ffffff;
    overflow-x: hidden;
}

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

/* ============================================
   Sidebar Navigation
   ============================================ */
.dashboard-sidebar {
    width: 280px;
    background-color: #1A1D29;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

/* Sidebar Branding */
.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background-color: #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.brand-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0;
    padding-left: 52px;
}

/* Sidebar Navigation Menu */
.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin: 4px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #E5E7EB;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.nav-link.active {
    background-color: #FF6B35;
    color: #ffffff;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Sidebar Footer (User Info & Logout) */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    margin-bottom: 16px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: #9CA3AF;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E5E7EB;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.logout-link:hover {
    color: #ffffff;
}

.logout-icon {
    width: 16px;
    height: 16px;
}

/* ============================================
   Main Content Area
   ============================================ */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    background-color: #202434;
    min-height: 100vh;
}

.dashboard-content {
    padding: 40px;
    max-width: 1400px;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #9CA3AF;
}

/* Content Card */
.content-card {
    background-color: #2A3042;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Search and Filter Section */
.search-filter-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background-color: #1A1D29;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    pointer-events: none;
}

.filter-dropdown {
    position: relative;
    min-width: 160px;
}

.filter-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background-color: #1A1D29;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #FF6B35;
}

.filter-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9CA3AF;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
    font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-content {
        padding: 24px 16px;
    }

    .search-filter-section {
        flex-direction: column;
    }

    .filter-dropdown {
        min-width: 100%;
    }
}

/* ============================================
   Auth/Slider Page Styles
   ============================================ */
/* Override body styles when auth-container is present */
body:not(:has(.dashboard-wrapper)) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}

.auth-container {
    margin: 0 auto;
}

.auth-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    margin: 0 auto;
}

.auth-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-container.right-panel-active .auth-sign-in-container {
    transform: translateX(100%);
}

.auth-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .auth-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: auth-show 0.6s;
}

@keyframes auth-show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.auth-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .auth-overlay-container {
    transform: translateX(-100%);
}

.auth-overlay {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .auth-overlay {
    transform: translateX(50%);
}

.auth-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .auth-overlay-left {
    transform: translateX(0);
}

.auth-overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .auth-overlay-right {
    transform: translateX(20%);
}

.auth-overlay-panel h1 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 32px;
}

.auth-overlay-panel p {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    margin-bottom: 30px;
}

.auth-ghost-btn {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
}

.auth-ghost-btn:hover {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-ghost-btn:active {
    transform: scale(0.9);
}

.auth-form {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.auth-form h1 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    font-size: 32px;
}

.auth-social-container {
    margin: 20px 0;
}

.auth-social-container a {
    border: 1px solid #dddddd;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.auth-social-container a:hover {
    background-color: #f093fb;
    color: #fff;
    border-color: #f093fb;
}

.auth-form input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    background-color: #f5f5f5;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form button {
    border-radius: 25px;
    border: 1px solid #f093fb;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.auth-form button:active {
    transform: scale(0.95);
}

.auth-error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    width: 100%;
    text-align: left;
}

.auth-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-error-list li {
    margin-bottom: 5px;
}

.auth-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .auth-container {
        min-height: 700px;
    }

    .auth-sign-in-container,
    .auth-sign-up-container {
        width: 100%;
    }

    .auth-overlay-container {
        display: none;
    }

    .auth-container.right-panel-active .auth-sign-in-container {
        transform: translateX(0);
        opacity: 0;
    }

    .auth-container.right-panel-active .auth-sign-up-container {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
