/* ================= ADMIN ONLY ================= */
.admin-panel {
    display: flex;
    direction: rtl;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: #0f172a;
    color: white;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    transition: 0.3s;
    z-index: 1000;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
}

    .admin-sidebar-nav li {
        padding: 10px 20px;
    }

.admin-link {
    color: #cbd5e1;
    display: flex;
    gap: 10px;
    text-decoration: none;
}

    .admin-link:hover {
        color: white;
    }

    .admin-link.active {
        background: #2563eb;
        border-radius: 6px;
    }

/* Main */
.admin-main {
    margin-right: 250px;
    width: 100%;
}

/* Header */
.admin-header {
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Content */
.admin-content {
    padding: 20px;
}

/* Overlay */
.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

    .admin-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Mobile */
@media (max-width: 992px) {

    .admin-sidebar {
        transform: translateX(100%);
    }

        .admin-sidebar.admin-open {
            transform: translateX(0);
        }

    .admin-main {
        margin-right: 0;
    }
}



/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.news-container {
    direction: rtl;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    padding: 2rem;
    background: #f0f4f8;
    min-height: 100vh;
    color: #1e293b;
}

/* ===== Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,.35);
}

h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 2px;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59,130,246,.4);
    transition: transform .2s, box-shadow .2s;
}

    .btn-add:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59,130,246,.5);
    }

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-right: 4px solid transparent;
    transition: transform .2s;
}

    .stat-card:hover {
        transform: translateY(-3px);
    }

    .stat-card.total {
        border-color: #3b82f6;
    }

    .stat-card.published {
        border-color: #22c55e;
    }

    .stat-card.draft {
        border-color: #94a3b8;
    }

    .stat-card.pending {
        border-color: #f59e0b;
    }

    .stat-card.archived {
        border-color: #8b5cf6;
    }

    .stat-card.featured {
        border-color: #f97316;
    }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card.total .stat-icon {
    background: #dbeafe;
    color: #2563eb;
}

.stat-card.published .stat-icon {
    background: #dcfce7;
    color: #16a34a;
}

.stat-card.draft .stat-icon {
    background: #f1f5f9;
    color: #64748b;
}

.stat-card.pending .stat-icon {
    background: #fef3c7;
    color: #d97706;
}

.stat-card.archived .stat-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-card.featured .stat-icon {
    background: #ffedd5;
    color: #ea580c;
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* ===== Filters ===== */
.filters-bar {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .filter-group label {
        font-size: 0.8rem;
        font-weight: 700;
        color: #475569;
    }

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    min-width: 240px;
    transition: border-color .2s;
}

    .search-box:focus-within {
        border-color: #3b82f6;
        background: white;
    }

    .search-box i {
        color: #94a3b8;
    }

    .search-box input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 0.875rem;
        width: 100%;
    }

.filters-bar select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #f8fafc;
    outline: none;
    min-width: 150px;
    transition: border-color .2s;
}

    .filters-bar select:focus {
        border-color: #3b82f6;
    }

.btn-reset {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #64748b;
    transition: all .2s;
    align-self: flex-end;
}

    .btn-reset:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: #fef2f2;
    }

/* ===== Table ===== */
.table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
}

    .news-table thead {
        background: #f8fafc;
    }

    .news-table th {
        padding: 1rem 1.25rem;
        text-align: right;
        font-size: 0.8rem;
        font-weight: 700;
        color: #475569;
        border-bottom: 2px solid #e2e8f0;
        white-space: nowrap;
    }

    .news-table td {
        padding: 0.9rem 1.25rem;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
        font-size: 0.875rem;
    }

    .news-table tr:hover td {
        background: #f8fafc;
    }

    .news-table tr:last-child td {
        border-bottom: none;
    }

.row-num {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
}

.title-cell {
    max-width: 280px;
}

.news-title {
    display: block;
    font-weight: 700;
    color: #1e293b;
}

.news-summary {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.date-cell {
    color: #64748b;
    white-space: nowrap;
}

.no-data {
    color: #cbd5e1;
}

/* Badges */
.badge {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-category {
    background: #dbeafe;
    color: #2563eb;
}

.badge-group {
    background: #f0fdf4;
    color: #16a34a;
}

/* Status */
.status-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-draft {
    background: #f1f5f9;
    color: #475569;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-published {
    background: #dcfce7;
    color: #15803d;
}

.status-archived {
    background: #ede9fe;
    color: #6d28d9;
}

/* Toggles */
.toggle-cell {
    text-align: center;
}

.toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #94a3b8;
    transition: all .2s;
}

    .toggle-btn:hover {
        border-color: #f59e0b;
        color: #f59e0b;
        background: #fef3c7;
    }

    .toggle-btn.active {
        border-color: #f59e0b;
        color: #f59e0b;
        background: #fef3c7;
    }

        .toggle-btn.active.carousel {
            border-color: #8b5cf6;
            color: #8b5cf6;
            background: #ede9fe;
        }

/* Actions */
.actions-cell {
    white-space: nowrap;
}

.action-btns {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all .2s;
}

    .action-btn.edit {
        background: #dbeafe;
        color: #2563eb;
    }

    .action-btn.archive {
        background: #ede9fe;
        color: #7c3aed;
    }

    .action-btn.unarchive {
        background: #f0fdf4;
        color: #16a34a;
    }

    .action-btn.delete {
        background: #fee2e2;
        color: #dc2626;
    }

    .action-btn:hover {
        filter: brightness(0.9);
        transform: scale(1.08);
    }

.deleted-row {
    opacity: 0.45;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

/* Empty / Loading */
.empty-state, .loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

    .empty-state i {
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn .2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: slideUp .25s;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-box.danger .modal-icon {
    color: #ef4444;
}

.modal-box.warning .modal-icon {
    color: #f59e0b;
}

.modal-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-box p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.modal-item-name {
    font-weight: 700;
    color: #1e293b;
}

.modal-warning {
    color: #ef4444 !important;
    font-size: 0.8rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-cancel {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    transition: all .2s;
}

    .btn-cancel:hover {
        border-color: #94a3b8;
    }

.btn-confirm-delete {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: #ef4444;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: all .2s;
}

    .btn-confirm-delete:hover {
        background: #dc2626;
    }

.btn-confirm-archive {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: #8b5cf6;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: all .2s;
}

    .btn-confirm-archive:hover {
        background: #7c3aed;
    }

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    animation: toastIn .3s;
    z-index: 2000;
}

    .toast.success {
        background: #dcfce7;
        color: #15803d;
    }

    .toast.error {
        background: #fee2e2;
        color: #dc2626;
    }

@keyframes toastIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ===== Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.form-container {
    direction: rtl;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    padding: 2rem;
    background: #f0f4f8;
    min-height: 100vh;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #475569;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

    .back-btn:hover {
        border-color: #3b82f6;
        color: #3b82f6;
    }

.header-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.header-info p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== Layout ===== */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

@@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== Card ===== */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

    .card:last-child {
        margin-bottom: 0;
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
}

    .card-header i {
        color: #3b82f6;
        font-size: 1rem;
    }

.card-body {
    padding: 1.5rem;
}

/* ===== Fields ===== */
.field-group {
    margin-bottom: 1.25rem;
}

    .field-group:last-child {
        margin-bottom: 0;
    }

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.45rem;
}

    .field-label.required::after {
        content: " *";
        color: #ef4444;
    }

.field-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, background .2s;
    outline: none;
}

    .field-input:focus {
        border-color: #3b82f6;
        background: white;
    }

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.content-editor {
    min-height: 220px;
}

.char-count {
    text-align: left;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.validation-msg {
    display: block;
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 4px;
}

/* ===== Upload Zone ===== */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: #f8fafc;
    transition: all .25s;
}

    .upload-zone:hover, .upload-zone.dragging {
        border-color: #3b82f6;
        background: #eff6ff;
    }

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 2.5rem;
    color: #93c5fd;
    margin-bottom: 0.75rem;
}

.upload-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.upload-sub {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.upload-hints {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hint {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .hint i {
        color: #3b82f6;
    }

/* ===== File Preview ===== */
.files-preview {
    margin-top: 1.25rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.75rem;
}

.clear-all-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.78rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.preview-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color .2s;
}

    .preview-item.is-primary {
        border-color: #f59e0b;
    }

.preview-thumb {
    height: 100px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .preview-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-thumb {
    background: #1e293b;
    font-size: 2.5rem;
    color: #94a3b8;
}

.media-type-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

    .media-type-badge.video {
        background: #8b5cf6;
        color: white;
    }

.primary-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f59e0b;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.preview-info {
    padding: 0.5rem 0.6rem;
}

.file-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

.file-size {
    font-size: 0.7rem;
    color: #94a3b8;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.3rem;
    padding: 0 0.5rem 0.5rem;
}

.action-tiny {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #94a3b8;
    transition: all .2s;
}

    .action-tiny:hover {
        border-color: #f59e0b;
        color: #f59e0b;
        background: #fef3c7;
    }

    .action-tiny.active {
        border-color: #f59e0b;
        color: #f59e0b;
        background: #fef3c7;
    }

    .action-tiny.danger:hover {
        border-color: #ef4444;
        color: #ef4444;
        background: #fee2e2;
    }

/* ===== Progress ===== */
.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width .2s;
}

.upload-progress span {
    font-size: 0.78rem;
    color: #64748b;
}

/* ===== Toggle Switch ===== */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-icon {
    font-size: 1.2rem;
}

    .toggle-icon.featured {
        color: #f59e0b;
    }

    .toggle-icon.carousel {
        color: #8b5cf6;
    }

.toggle-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.toggle-desc {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.5rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: .3s;
}

    .slider::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: white;
        bottom: 3px;
        right: 3px;
        box-shadow: 0 2px 4px rgba(0,0,0,.2);
        transition: .3s;
    }

.switch input:checked + .slider {
    background: #3b82f6;
}

    .switch input:checked + .slider::before {
        transform: translateX(-20px);
    }

/* ===== Submit Buttons ===== */
.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(59,130,246,.4);
    transition: all .2s;
}

    .btn-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(59,130,246,.5);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-draft {
    width: 100%;
    padding: 0.65rem;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all .2s;
}

    .btn-draft:hover {
        border-color: #94a3b8;
    }

.btn-cancel-link {
    width: 100%;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    transition: color .2s;
}

    .btn-cancel-link:hover {
        color: #ef4444;
    }

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    animation: toastIn .3s;
    z-index: 2000;
}

    .toast.success {
        background: #dcfce7;
        color: #15803d;
    }

    .toast.error {
        background: #fee2e2;
        color: #dc2626;
    }

@@keyframes toastIn {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
