﻿/* =========================================
   1. ADMIN NAVIGATION BUTTON
   ========================================= */
.btn-admin-nav {
    background-color: #dc3545;
    color: white !important;
    border-radius: 20px;
    border: 1px solid #b02a37;
    padding: 6px 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}

    .btn-admin-nav:hover {
        background-color: #bb2d3b;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    }

    .btn-admin-nav svg {
        fill: currentColor;
    }

/* =========================================
   2. BLOG MANAGEMENT INTERFACE (Wrapper)
   ========================================= */
.blog-admin-interface {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

    .blog-admin-interface h1,
    .blog-admin-interface h2,
    .blog-admin-interface h3,
    .blog-admin-interface h4,
    .blog-admin-interface h5 {
        font-family: 'Inter', system-ui, sans-serif !important;
        letter-spacing: -0.5px;
    }

/* =========================================
   3. MODERN FORM CARD (The New Design)
   ========================================= */
.blog-form-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card-header {
    background: #fff;
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-bottom: none;
}

.blog-card-body {
    padding: 1rem 2.5rem 2.5rem 2.5rem;
}

/* --- MODERN INPUTS --- */
.blog-input-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.blog-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: #344767;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-control {
    width: 100%;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #f0f2f5;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.2s ease;
}

    .blog-control:focus {
        background: #fff;
        border-color: #000;
        box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
        outline: none;
    }

/* Helper text below inputs */
.blog-help {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 5px;
    display: block;
}

/* --- CUSTOM FILE UPLOAD --- */
.custom-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 120px;
    background: #fafafa;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}

    .custom-file-upload:hover {
        background: #f1f5f9;
        border-color: #64748b;
    }

    .custom-file-upload input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.upload-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #64748b;
}

.upload-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* --- TABLES & BADGES (For Edit/Index Pages) --- */
.content-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .content-table th {
        padding: 1rem;
        border-bottom: 2px solid #eee;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #888;
    }

    .content-table td {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

.media-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
}

.audio-preview {
    background: #f1f3f5;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Add this under your existing .type-badge styles */

.badge-title {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.badge-text {
    background: #e9ecef;
    color: #495057;
}

.badge-image {
    background: #e3f2fd;
    color: #0d6efd;
}

.badge-audio {
    background: #f3e5f5;
    color: #9c27b0;
}

.add-block-area {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}
