/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Corporate Palette - Midnight Blue / Slate */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-light: #334155;
    /* Slate 700 */
    --secondary-color: #64748b;
    /* Slate 500 */
    --accent-color: #2563eb;
    /* Blue 600 - Highlights */

    --success-color: #059669;
    /* Emerald 600 - Sober green */
    --danger-color: #dc2626;
    /* Red 600 - Sober red */
    --warning-color: #d97706;
    /* Amber 600 */

    --dark-color: #0f172a;
    --light-color: #f8fafc;
    /* Slate 50 */
    --body-bg: #f1f5f9;
    /* Slate 100 */
    --surface-color: #ffffff;

    --sidebar-width: 260px;
    --header-height: 64px;
    /* Slightly more compact */

    --border-radius: 6px;
    /* Professional, tighter radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: #334155;
    /* Slate 700 for text */
    overflow-x: hidden;
    font-size: 0.925rem;
    /* Slightly denser */
}

/* Sidebar - Enterprise Style (Dark) */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 24px 12px;
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #94a3b8;
    /* Slate 400 */
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar-menu a i {
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Topbar - Clean & Minimal */
.topbar {
    height: var(--header-height);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    /* Subtle border */
    margin-bottom: 32px;
}

/* Cards Premium -> Enterprise Card */
.card-premium {
    background: var(--surface-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card-premium:hover {
    /* No movement, just subtle shadow depth */
    box-shadow: var(--shadow-md);
    transform: none;
    /* Removed hop effect for sobriety */
}

.card-header-premium {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.card-body {
    padding: 24px;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Ghost Buttons - Refined */
.btn-ghost-primary {
    color: var(--primary-light);
    background: transparent;
}

.btn-ghost-primary:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.btn-ghost-success {
    color: var(--success-color);
    background: transparent;
}

.btn-ghost-success:hover {
    background: #ecfdf5;
    /* Emerald 50 */
}

.btn-ghost-secondary {
    color: var(--secondary-color);
    background: transparent;
}

.btn-ghost-secondary:hover {
    background: #f1f5f9;
}

.btn-ghost-danger {
    color: var(--danger-color);
    background: transparent;
}

.btn-ghost-danger:hover {
    background: #fef2f2;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    /* Square-ish */
}

/* Tables - Enterprise */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* Login Page specific */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--body-bg);
    /* Clean slate background */
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    /* Slightly more rounded for login card */
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

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

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

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .topbar {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.sidebar-overlay {
    background: rgba(15, 23, 42, 0.4);
    /* Darker overlay */
}

/* FullCalendar Customization */
.fc-col-header-cell-cushion {
    text-decoration: none !important;
    color: var(--secondary-color) !important;
    text-transform: capitalize;
    /* Use capitalize for "Seg 22/12" look */
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    display: inline-block;
}

.fc-col-header-cell-cushion:hover {
    text-decoration: none !important;
    color: var(--primary-light) !important;
}

.fc-col-header-cell {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    padding: 4px 0;
}

.fc-timegrid-slot-label-cushion {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.fc-event-content {
    font-size: 0.85rem;
}