/* ============================================
   Segno — Custom Styles
   ============================================ */

:root {
    --sidebar-width: 250px;
    --sidebar-collapsed: 64px;
    --navbar-height: 56px;
}

/* ---- Body ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f6fa;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar .nav-link {
    font-size: 0.875rem;
    border-radius: 6px;
    margin: 1px 8px;
    transition: all 0.15s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-weight: 600;
}

.sidebar-logo {
    transition: opacity 0.15s ease;
}

.sidebar-logo:hover {
    opacity: 0.85;
}

/* ---- Main content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ---- Cards ---- */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* ---- Progress bars ---- */
.progress {
    border-radius: 10px;
}

/* ---- Auth pages ---- */
.bg-light {
    background-color: #f5f6fa !important;
}

/* ---- Form controls ---- */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

/* ---- Buttons ---- */
.btn-primary {
    font-weight: 500;
}

.btn-sm {
    font-size: 0.8125rem;
}

/* ---- Badges ---- */
.badge {
    font-weight: 500;
}

/* ---- Status badges ---- */
.badge-status-draft {
    background-color: #6c757d;
}

.badge-status-ready {
    background-color: #198754;
}

.badge-status-published {
    background-color: #0d6efd;
}

.badge-status-planned {
    background-color: #ffc107;
    color: #212529;
}

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

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

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

/* ---- Alert tweaks ---- */
.alert {
    font-size: 0.875rem;
    border-radius: 8px;
}

/* ---- Table styles ---- */
.table th {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-bottom-width: 1px;
}

.table td {
    font-size: 0.875rem;
    vertical-align: middle;
}

/* ---- Empty states ---- */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* ---- Wizard steps ---- */
.wizard-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #adb5bd;
    border-bottom: 3px solid #dee2e6;
    transition: all 0.2s ease;
}

.wizard-step.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.wizard-step.completed {
    color: #198754;
    border-bottom-color: #198754;
}

/* ---- Content editor ---- */
.content-preview {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ---- Calendar grid ---- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    min-height: 100px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.8125rem;
}

.calendar-day-header {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.5rem;
    text-align: center;
}

/* ---- Loading spinner ---- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ---- Utility ---- */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
