.admin-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.comment-history {
    max-height: 400px;
    overflow-y: auto;
}

.admin-table {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table th {
    background-color: #F2F5F3;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.admin-table .table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.admin-table .table tbody tr:hover {
    background-color: #F8F9FA;
}

.admin-table .table td .btn {
    white-space: nowrap;
}

.admin-btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.admin-btn .fa {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.admin-btn-sm {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.admin-btn-md {
    width: 108px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.admin-btn-sm .fa {
    font-size: 0.9rem !important;
}

.admin-btn-md .fa {
    font-size: 0.9rem !important;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF9C6D;
    margin-bottom: 0.5rem;
}

.admin-stat-label {
    color: #6c757d;
    font-weight: 500;
}

.admin-form {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-form .form-control,
.admin-form .form-select {
    border-radius: 15px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: #FF9C6D;
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 109, 0.25);
}

.admin-image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0.5rem;
}

.admin-image-upload {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: .375rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.admin-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.admin-image-upload:hover {
    border-color: #FF9C6D;
    background-color: #FFF5F2;
}

.admin-image-upload.dragover {
    border-color: #FF9C6D;
    background-color: #FFF5F2;
}

.admin-badge {
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.admin-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.admin-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.admin-badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.admin-search {
    border-radius: 50px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
}

.admin-search:focus {
    border-color: #FF9C6D;
    box-shadow: 0 0 0 0.2rem rgba(255, 156, 109, 0.25);
}

.admin-search-wrapper {
    position: relative;
}

.admin-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.admin-blog-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
}

.admin-gallery-uploader {
    border: 2px dashed var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.admin-gallery-uploader.dragover {
    border-color: var(--bs-primary);
    background: var(--bs-light);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}

.gallery-card .ratio {
    background: #f8f9fa;
}
.gallery-caption {
    resize: vertical;
}

.gallery-thumb { position: relative; }
.gallery-remove { z-index: 3; }

.gallery-frame { background: #f8f9fa; }

.carousel-indicators.position-static {
    margin-top: .5rem;
}
.carousel-indicators.position-static [data-bs-target] {
    width: .75rem; height: .75rem;
}

.gallery-caption {
    word-break: break-word;
}

.admin-actions { display:flex; align-items:center; gap:.5rem; }
.admin-actions form { margin:0; display:inline-flex; }
.admin-btn { flex-shrink:0; }

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-card,
    .admin-form {
        padding: 1rem;
        border-radius: 20px;
    }
}

.avatar-40{
    width:40px;height:40px;border-radius:50%;
    background:#F2F5F3; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
}
.avatar-40 img{ width:100%; height:100%; object-fit:cover; display:block; }
.avatar-40 .initial{ font-weight:700; color:#6c757d; }

.admin-badge-soft{
    padding:.2rem .55rem; font-size:.85rem; font-weight:500;
    border-radius:9999px; border:1px solid transparent; line-height:1.1;
}
.admin-badge-soft-success{ background:rgba(25,135,84,.08); color:#198754; border-color:rgba(25,135,84,.15); }
.admin-badge-soft-warning{ background:rgba(255,193,7,.10); color:#7a5b00; border-color:rgba(255,193,7,.20); }
.admin-badge-soft-muted{ background:rgba(108,117,125,.08); color:#6c757d; border-color:rgba(108,117,125,.15); }
.admin-badge-soft i{ font-size:.9em; margin-right:.35em; }

@media (max-width: 991.98px) {
    .navbar .navbar-collapse .navbar-nav {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .navbar .navbar-collapse .navbar-nav .nav-item {
        padding: 0 !important;
        margin: 0 !important;
    }
    .navbar .navbar-collapse .navbar-nav .nav-link {
        display: inline-block;
        padding: .75rem 0 !important;
    }
    .navbar .navbar-collapse .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center;
    }
}


