﻿* {
    font-family: "Poppins", Arial, sans-serif;
}

.add-blog-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(2, 32, 121, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-blog-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 32, 121, 0.5);
}

.add-blog-btn.show {
    display: flex;
}

.add-blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.add-blog-modal.show {
    display: flex;
}

.add-blog-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.add-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
}

.add-blog-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.close-blog-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.close-blog-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.add-blog-form {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    padding-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-group-blog {
    margin-bottom: 20px;
}

.form-group-blog label,
.form-col label {
    display: block;
    color: #022079;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

    .form-group-blog input,
    .form-group-blog textarea,
    .form-group-blog select,
    .form-col input,
    .form-col select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s ease;
        box-sizing: border-box;
        color: #777777;
    }

.form-group-blog input:focus,
.form-group-blog textarea:focus,
.form-group-blog select:focus,
.form-col input:focus,
.form-col select:focus {
    outline: none;
    border-color: #022079;
    box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
}

.form-group-blog textarea {
    resize: vertical;
    min-height: 120px;
}

.form-col input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.image-preview {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.image-preview.show {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.questions-section {
    margin: 30px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 15px;
}

.questions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.questions-header h3 {
    color: #022079;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.add-question-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.question-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-number {
    color: #022079;
    font-weight: 700;
    font-size: 16px;
}

.remove-question-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.remove-question-btn:hover {
    background: #dc2626;
}

.question-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}


.answer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.answer-item .error-message {
    flex-basis: 100%;
    margin-left: 30px;
    margin-top: 4px;
}

.answer-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-item input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.btn-cancel,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Poppins", Arial, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-cancel {
    background: #e5e7eb;
    color: #374151;
}

.btn-cancel:hover {
    background: #d1d5db;
}

.btn-submit {
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.3);
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(2, 32, 121, 0.4);
    }

.error-message {
    display: none;
    color: #ef4444;
    font-size: 12px;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 0;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

input.input-error, .form-col select.input-error, .form-group-blog textarea.input-error {
    border: 2px solid #ef4444;
    background-color: #fef2f2;

}


input.input-error:focus, .form-col select.input-error:focus, .form-group-blog textarea.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.dark-mode .form-actions {
    background: #1a1a2e;
}

.dark-mode .add-blog-btn {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
}

.dark-mode .add-blog-container {
    background: #1a1a2e;
}

.dark-mode .add-blog-header {
    background: linear-gradient(135deg, #faff04, #ffcc00);
}

.dark-mode .add-blog-header h2 {
    color: #022079;
}

.dark-mode .close-blog-modal {
    background: rgba(2, 32, 121, 0.2);
    color: #022079;
}

.dark-mode .form-group-blog label,
.dark-mode .form-col label {
    color: #faff04;
}

.dark-mode .form-group-blog input,
.dark-mode .form-group-blog textarea,
.dark-mode .form-group-blog select,
.dark-mode .form-col input,
.dark-mode .form-col select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: #777777;
}

.dark-mode .form-col select option {
    color: black;
}

.dark-mode .form-group-blog select

.dark-mode .form-group-blog input:focus,
.dark-mode .form-group-blog textarea:focus,
.dark-mode .form-group-blog select:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

.dark-mode .questions-section {
    background: rgba(255, 255, 255, 0.03);
}

.dark-mode .questions-header h3 {
    color: #faff04;
}

.dark-mode .question-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.2);
}

.dark-mode .question-number {
    color: #faff04;
}

.dark-mode .btn-submit {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
}

.dark-mode input.input-error, .dark-mode .form-col select.input-error, .dark-mode .form-group-blog textarea.input-error {
    border: 2px solid #ef4444;
    background-color: #fef2f2;
}


.dark-mode input.input-error:focus, .dark-mode .form-col select.input-error:focus, .dark-mode .form-group-blog textarea.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
 }

.add-blog-form::-webkit-scrollbar {
    width: 8px;
}

.add-blog-form::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.add-blog-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark-mode .add-blog-form::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 4, 0.3);
}


.add-actions-menu {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 998;
}

    .add-actions-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(-80px);
    }

.add-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
}

.add-actions-menu.active .add-action-btn {
    opacity: 1;
    transform: scale(1);
}

    .add-actions-menu.active .add-action-btn:nth-child(1) {
        transition-delay: 0.05s;
    }

    .add-actions-menu.active .add-action-btn:nth-child(2) {
        transition-delay: 0.1s;
    }

.add-blog-action {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

    .add-blog-action:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }

.add-admin-action {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

    .add-admin-action:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

.add-admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .add-admin-modal.show {
        display: flex;
    }

.add-admin-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.add-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    border-radius: 20px 20px 0 0;
}

    .add-admin-header h2 {
        color: white;
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }

.close-admin-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

    .close-admin-modal:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.add-admin-form {
    padding: 30px;
}

.form-group-admin {
    margin-bottom: 25px;
}

.form-group-admin label {
    display: block;
    color: #022079;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group-admin input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-admin input:focus {
    outline: none;
    border-color: #022079;
    box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
}

.dark-mode .add-blog-btn {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
}


.dark-mode .add-admin-container {
    background: #1a1a2e;
}

.dark-mode .add-admin-header {
    background: linear-gradient(135deg, #faff04, #ffcc00);
}

.dark-mode .add-admin-header h2 {
    color: #022079;
}

.dark-mode .close-admin-modal {
    background: rgba(2, 32, 121, 0.2);
    color: #022079;
}

.dark-mode .form-group-admin label {
    color: #faff04;
}

.dark-mode .form-group-admin input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: #e5e7eb;
}

.dark-mode .form-group-admin input:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


.admin-type-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
    color: #374151;
}

    .admin-type-select:focus {
        outline: none;
        border-color: #022079;
        box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
    }

    .admin-type-select option {
        padding: 10px;
        color: #374151;
    }

.dark-mode .admin-type-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: #e5e7eb;
}

.dark-mode .admin-type-select:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

.dark-mode .admin-type-select option {
    background-color: #1a1a2e;
    color: #e5e7eb;
}


.manage-blogs-action {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.manage-blogs-action:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.manage-categories-action {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.manage-categories-action:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.blog-list-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .blog-list-modal.show {
        display: flex;
    }

.blog-list-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.blog-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
}

    .blog-list-header h2 {
        color: white;
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }

.close-blog-list-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

    .close-blog-list-modal:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.blog-list-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.blog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .blog-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.blog-item-info {
    flex: 1;
}

.blog-item-title {
    color: #022079;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.blog-item-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 13px;
}

    .blog-meta-item i {
        color: #022079;
    }

.blog-item-actions {
    display: flex;
    gap: 10px;
}

.blog-action-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-edit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

    .blog-edit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.blog-delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

    .blog-delete-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }

.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .category-modal.show {
        display: flex;
    }

.category-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
}

    .category-header h2 {
        color: white;
        font-size: 24px;
        font-weight: 700;
        margin: 0;
    }

.close-category-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

    .close-category-modal:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.category-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.add-category-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.category-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

    .category-input-group input {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .category-input-group input:focus {
            outline: none;
            border-color: #022079;
            box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
        }

.add-category-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .add-category-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

.categories-list {
    margin-top: 20px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .category-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.category-name {
    color: #022079;
    font-weight: 600;
    font-size: 15px;
}

.category-translations {
    color: #6b7280;
    font-size: 13px;
    margin-top: 5px;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-edit-btn {
    background: #3b82f6;
    color: white;
}

    .category-edit-btn:hover {
        background: #2563eb;
    }

.category-delete-btn {
    background: #ef4444;
    color: white;
}

.category-delete-btn:hover {
    background: #dc2626;
}

.dark-mode .blog-list-container,
.dark-mode .category-container {
    background: #1a1a2e;
}

.dark-mode .blog-list-header,
.dark-mode .category-header {
    background: linear-gradient(135deg, #faff04, #ffcc00);
}

    .dark-mode .blog-list-header h2,
    .dark-mode .category-header h2 {
        color: #022079;
    }

.dark-mode .close-blog-list-modal,
.dark-mode .close-category-modal {
    background: rgba(2, 32, 121, 0.2);
    color: #022079;
}

.dark-mode .blog-item,
.dark-mode .category-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.2);
}

.dark-mode .blog-item-title,
.dark-mode .category-name {
    color: #faff04;
}

.dark-mode .blog-meta-item,
.dark-mode .category-translations {
    color: #9ca3af;
}

.dark-mode .blog-meta-item i {
    color: #faff04;
}

.dark-mode .add-category-section {
    background: rgba(255, 255, 255, 0.03);
}

.dark-mode .category-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: #e5e7eb;
}

.dark-mode .category-input-group input:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

.blog-list-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.no-blogs-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-blogs-message i {
    font-size: 80px;
    color: #022079;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-blogs-message h3 {
    color: #022079;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.no-blogs-message p {
    color: #6b7280;
    font-size: 16px;
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
}

.dark-mode .blog-meta-item i {
    color: #faff04;
}

.dark-mode .no-blogs-message i {
    color: #faff04;
}

.dark-mode .no-blogs-message h3 {
    color: #faff04;
}

.dark-mode .no-blogs-message p {
    color: #9ca3af;
}

.category-body::-webkit-scrollbar {
    width: 8px;
}

.category-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.category-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark-mode .category-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .category-body::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 4, 0.3);
}

.add-category-section h3 {
    color: #022079;
    margin-bottom: 15px;
}

.dark-mode .add-category-section h3 {
    color: #faff04;
}

.category-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.category-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.category-input-group input.input-error {
    border: 2px solid #ef4444;
    background-color: #fef2f2;
}

.category-input-group input:focus {
    outline: none;
    border-color: #022079;
    box-shadow: 0 0 0 3px rgba(2, 32, 121, 0.1);
}

.category-input-group input.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.category-input-wrapper .error-message {
    margin-top: 6px;
    min-height: 18px;
}

.dark-mode .category-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: #e5e7eb;
}

.dark-mode .category-input-group input:focus {
    border-color: #faff04;
    box-shadow: 0 0 0 3px rgba(250, 255, 4, 0.1);
}

.dark-mode .category-input-group input.input-error {
    border: 2px solid #ef4444;
    background-color: #fef2f2;
}

.dark-mode .category-input-group input.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}


#blog-title-en:focus,
#blog-subtitle-en:focus,
#blog-content-en:focus,
.question-input-en:focus,
.answer-input-en:focus {
    background-color: white;
}

#blog-title-en:not(:placeholder-shown),
#blog-subtitle-en:not(:placeholder-shown),
#blog-content-en:not(:placeholder-shown) {
    background-color: white;
}

.form-group-blog input[id$="-en"],
.form-group-blog textarea[id$="-en"],
.question-input-en,
.answer-input-en {
    cursor: text !important;
    opacity: 1 !important;
}

.answer-item.answer-en {
    padding-left: 30px;
    margin-bottom: 12px;
}

.answer-item.answer-en input[type="text"] {
    width: 100%;
}

input.input-error,
textarea.input-error,
select.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
}

input.input-error:focus,
textarea.input-error:focus,
select.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.dark-mode #blog-title-en,
.dark-mode #blog-subtitle-en,
.dark-mode #blog-content-en,
.dark-mode .question-input-en,
.dark-mode .answer-input-en {
    color: #e5e7eb;
}

.dark-mode #blog-title-en:focus,
.dark-mode #blog-subtitle-en:focus,
.dark-mode #blog-content-en:focus,
.dark-mode .question-input-en:focus,
.dark-mode .answer-input-en:focus {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode #blog-title-en:not(:placeholder-shown),
.dark-mode #blog-subtitle-en:not(:placeholder-shown),
.dark-mode #blog-content-en:not(:placeholder-shown) {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode input.input-error,
.dark-mode textarea.input-error,
.dark-mode .form-col select.input-error,
.dark-mode .form-group-blog textarea.input-error {
    border: 2px solid #ef4444 !important;
    background-color: #fef2f2 !important;
}

.dark-mode input.input-error:focus,
.dark-mode textarea.input-error:focus,
.dark-mode .form-col select.input-error:focus,
.dark-mode .form-group-blog textarea.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}


@media (max-width: 768px) {
    .add-blog-container {
        width: 95%;
        max-height: 95vh;
    }

    .add-blog-header {
        padding: 20px;
    }

        .add-blog-header h2 {
            font-size: 20px;
        }

    .add-blog-form {
        padding: 20px;
        padding-bottom: 100px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .blog-action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .category-input-group {
        flex-direction: column;
    }

    .add-category-btn {
        width: 100%;
        justify-content: center;
    }

    .category-input-group {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .add-blog-container {
        width: 98%;
        max-height: 98vh;
        border-radius: 15px;
    }

    .add-blog-header {
        padding: 15px;
    }

        .add-blog-header h2 {
            font-size: 18px;
        }

    .close-blog-modal {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .add-blog-form {
        padding: 15px;
        padding-bottom: 100px;
    }

    .questions-section {
        padding: 15px;
        margin: 20px 0;
    }

    .questions-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

        .questions-header h3 {
            font-size: 16px;
        }

    .add-question-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }

    .question-item {
        padding: 15px;
    }

    .question-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .question-number {
        font-size: 14px;
    }

    .remove-question-btn {
        width: 100%;
        padding: 8px;
    }

    .question-input {
        padding: 10px;
        font-size: 14px;
    }

    .answer-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .answer-item input[type="radio"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .answer-item input[type="text"] {
        padding: 10px;
        font-size: 13px;
    }

    .form-group-blog input,
    .form-group-blog textarea,
    .form-group-blog select,
    .form-col input,
    .form-col select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-group-blog label,
    .form-col label {
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }

    .add-admin-container {
        width: 95%;
        max-width: 95%;
    }

    .add-admin-header {
        padding: 20px;
    }

        .add-admin-header h2 {
            font-size: 20px;
        }

    .add-admin-form {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .add-blog-header h2 {
        font-size: 16px;
    }

    .add-blog-form {
        padding: 12px;
    }

    .questions-section {
        padding: 12px;
    }

    .question-item {
        padding: 12px;
    }

    .question-input,
    .answer-item input[type="text"] {
        font-size: 13px;
    }
}
