/* ========================================
   BIZENTRIX - MODERN BLUE & GREEN DASHBOARD
   Premium design with dark theme (Dublux style)
   ======================================== */

@import url('theme.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ========================================
   LOGIN PAGE - PURE DARK
   ======================================== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-bg);
    padding: 20px;
}

.login-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: none;
    backdrop-filter: none;
    animation: slideUp 0.6s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a2a 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: white;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px;
}

.logo img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.logo-section p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-box .form-group input {
    font-size: 13px;
    padding: 10px 12px;
}

.login-box .btn-primary {
    margin-top: 6px;
    padding: 10px;
    width: 100%;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.login-box p {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

.dashboard {
    display: flex;
    height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
}

/* ========================================
   SIDEBAR - PURE DARK MINIMAL
   ======================================== */

.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a2a 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.sidebar-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--primary-blue);
    border-color: transparent;
}

.nav-link.active {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    box-shadow: var(--shadow-glow);
    border-color: transparent;
    font-weight: 600;
}

.nav-link i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   TOPBAR - PURE DARK MINIMAL
   ======================================== */

.topbar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
}

.topbar::after {
    display: none;
}

.topbar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a2a 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.user-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-name span:last-child {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    background: var(--bg-primary);
    margin-top: 0;
}

.content h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.content h3 i {
    color: var(--primary-blue);
    font-size: 18px;
}

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

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        padding: 16px 12px;
    }
    
    .topbar {
        padding: 16px 24px;
    }
    
    .topbar h1 {
        font-size: 20px;
    }
    
    .content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
        margin-bottom: 0;
    }
    
    .sidebar-logo {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .sidebar-nav {
        display: none;
        flex-direction: row;
        flex: 0;
    }
    
    .sidebar-nav.mobile-open {
        display: flex;
    }
    
    .topbar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin-top: 0;
    }
    
    .topbar::after {
        display: none;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .content {
        padding: 16px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .topbar h1 {
        font-size: 18px;
    }
    
    .sidebar-logo-text {
        display: none;
    }
    
    .sidebar {
        justify-content: center;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .content {
        padding: 12px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.content {
    animation: fadeIn 0.4s ease-out;
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

.btn-success {
    background: linear-gradient(90deg, #10b981, #059669) !important;
    color: white !important;
    border: none;
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.btn-warning {
    background: linear-gradient(90deg, #f59e0b, #d97706) !important;
    color: white !important;
}

/* ========================================
   CANVA INTEGRATION STYLES
   ======================================== */

.canva-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.canva-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.media-upload-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.media-upload-section:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
    border-color: var(--primary-blue);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .sidebar,
    .topbar,
    .btn,
    .modal {
        display: none;
    }
    
    .content {
        padding: 0;
    }
}
