/* Phoenix Theme Enterprise CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --phoenix-font-sans: 'Inter', sans-serif;
    
    /* Light Mode Variables */
    --phoenix-bg: #f5f7fa;
    --phoenix-card-bg: #ffffff;
    --phoenix-text: #2f3e4e;
    --phoenix-text-muted: #6c7a87;
    --phoenix-border: #e2e8f0;
    --phoenix-primary: #3874ff;
    --phoenix-primary-hover: #2563eb;
    --phoenix-sidebar-bg: #ffffff;
    --phoenix-sidebar-text: #4a5568;
    --phoenix-sidebar-hover: #f1f5f9;
    --phoenix-sidebar-active: #e0e7ff;
    --phoenix-sidebar-active-text: #3874ff;
    --phoenix-topbar-bg: #ffffff;
    --phoenix-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    --phoenix-bg: #0f172a;
    --phoenix-card-bg: #1e293b;
    --phoenix-text: #f1f5f9;
    --phoenix-text-muted: #94a3b8;
    --phoenix-border: #334155;
    --phoenix-primary: #3874ff;
    --phoenix-primary-hover: #5b8cff;
    --phoenix-sidebar-bg: #1e293b;
    --phoenix-sidebar-text: #cbd5e1;
    --phoenix-sidebar-hover: #334155;
    --phoenix-sidebar-active: #334155;
    --phoenix-sidebar-active-text: #ffffff;
    --phoenix-topbar-bg: #1e293b;
    --phoenix-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--phoenix-font-sans);
    background-color: var(--phoenix-bg);
    color: var(--phoenix-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}

/* App Layout Structure */
#app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
#sidebar {
    width: 260px;
    background-color: var(--phoenix-sidebar-bg);
    border-right: 1px solid var(--phoenix-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

#sidebar .brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--phoenix-primary);
    border-bottom: 1px solid var(--phoenix-border);
}

#sidebar .nav-links {
    padding: 1rem 0;
    flex-grow: 1;
}

#sidebar .nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--phoenix-sidebar-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar .nav-link-item:hover {
    background-color: var(--phoenix-sidebar-hover);
    color: var(--phoenix-text);
}

#sidebar .nav-link-item.active {
    background-color: var(--phoenix-sidebar-active);
    color: var(--phoenix-sidebar-active-text);
    border-left-color: var(--phoenix-primary);
}

/* Main Content Styling */
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Topbar Styling */
#topbar {
    height: 70px;
    background-color: var(--phoenix-topbar-bg);
    border-bottom: 1px solid var(--phoenix-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: var(--phoenix-shadow);
}

/* Premium Card Design */
.phoenix-card {
    background-color: var(--phoenix-card-bg);
    border: 1px solid var(--phoenix-border);
    border-radius: 12px;
    box-shadow: var(--phoenix-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phoenix-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Notifications Dropdown styling */
.notif-dropdown {
    width: 320px !important;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--phoenix-border);
    box-shadow: var(--phoenix-shadow);
    background-color: var(--phoenix-card-bg);
    overflow: hidden;
}

.notif-header {
    padding: 0.75rem 1rem;
    background-color: var(--phoenix-sidebar-hover);
    border-bottom: 1px solid var(--phoenix-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--phoenix-border);
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: block;
    color: var(--phoenix-text);
    text-decoration: none;
}

.notif-item:hover {
    background-color: var(--phoenix-sidebar-hover);
}

.notif-item.unread {
    background-color: rgba(56, 116, 255, 0.05);
    border-left: 3px solid var(--phoenix-primary);
}

.notif-item .notif-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notif-item .notif-msg {
    font-size: 0.8rem;
    color: var(--phoenix-text-muted);
    margin-bottom: 0.25rem;
}

.notif-item .notif-time {
    font-size: 0.7rem;
    color: var(--phoenix-text-muted);
}

/* Login/Register Form Styles */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--phoenix-bg);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--phoenix-card-bg);
    border: 1px solid var(--phoenix-border);
    border-radius: 16px;
    box-shadow: var(--phoenix-shadow);
    padding: 2.5rem;
}

.auth-btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid var(--phoenix-border);
    background-color: transparent;
    color: var(--phoenix-text);
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-btn-oauth:hover {
    background-color: var(--phoenix-sidebar-hover);
}

/* Responsive Styles */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.show {
        margin-left: 0;
    }
}

/* Common form elements style */
.form-control, .form-select {
    background-color: var(--phoenix-card-bg);
    border: 1.5px solid var(--phoenix-border);
    color: var(--phoenix-text);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--phoenix-card-bg);
    border-color: var(--phoenix-primary);
    box-shadow: 0 0 0 3px rgba(56, 116, 255, 0.15);
    color: var(--phoenix-text);
}

/* Timeline/Workflow Progress Styles */
.timeline {
    position: relative;
    padding-left: 30px;
    list-style: none;
}
.timeline:before {
    content: " ";
    background: var(--phoenix-border);
    display: inline-block;
    position: absolute;
    left: 9px;
    width: 2px;
    height: 100%;
    z-index: 400;
}
.timeline-item {
    margin: 20px 0;
}
.timeline-badge {
    color: #fff;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 10px;
    text-align: center;
    position: absolute;
    left: 0px;
    background-color: var(--phoenix-text-muted);
    border-radius: 50%;
    z-index: 100;
    border: 3px solid var(--phoenix-card-bg);
}
.timeline-badge.active {
    background-color: var(--phoenix-primary);
    box-shadow: 0 0 0 3px rgba(56, 116, 255, 0.2);
}
.timeline-badge.success {
    background-color: #2ec4b6;
}
.timeline-badge.danger {
    background-color: #e63946;
}