﻿.admin-wrapper {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', sans-serif;
}

    .admin-wrapper h1, .admin-wrapper h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 2rem;
        color: #1f1f1f;
    }

.admin-form-card, .admin-faq-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .admin-form-card .form-control {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
        border: 1px solid #ccc;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: border-color 0.3s;
    }

        .admin-form-card .form-control:focus {
            outline: none;
            border-color: #2c3fa3;
        }

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
}

.admin-button-success {
    background-color: #2c3fa3;
    color: white;
    box-shadow: 0 4px 10px rgba(44, 63, 163, 0.2);
}

    .admin-button-success:hover {
        background-color: #233385;
        box-shadow: 0 6px 15px rgba(44, 63, 163, 0.3);
        transform: translateY(-1px);
    }

.admin-button-secondary {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

    .admin-button-secondary:hover {
        background-color: #5a6268;
        box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
        transform: translateY(-1px);
    }

.admin-button-outline-primary {
    background-color: transparent;
    color: #2c3fa3;
    border: 2px solid #2c3fa3;
    box-shadow: none;
}

    .admin-button-outline-primary:hover {
        background-color: #2c3fa3;
        color: white;
        box-shadow: 0 4px 10px rgba(44, 63, 163, 0.2);
        transform: translateY(-1px);
    }

.admin-button-outline-danger {
    background-color: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    box-shadow: none;
}

    .admin-button-outline-danger:hover {
        background-color: #dc3545;
        color: white;
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
        transform: translateY(-1px);
    }

.admin-button-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.admin-faq-card .card-body {
    padding: 0;
}

.admin-faq-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e2e2e;
    margin-bottom: 0.5rem;
}

.admin-faq-card .card-id {
    font-size: 0.9rem;
    color: #606060;
    margin-bottom: 1rem;
}

.admin-faq-card .card-text {
    color: #3f3f3f;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.admin-faq-card img {
    border-radius: 8px;
}

.admin-faq-card hr {
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.admin-button-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

    .admin-button-group form {
        flex-shrink: 0;
        flex-grow: 0;
    }

.alert {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tox .tox-tinymce {
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #ccc !important;
}

.tox .tox-editor-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    background-color: #f0f0f0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.tox .tox-statusbar {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    background-color: #f0f0f0 !important;
    border-top: 1px solid #e0e0e0 !important;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 768px) {
    .admin-wrapper {
        margin: 2rem auto;
        padding: 0 0.5rem;
    }

        .admin-wrapper h1, .admin-wrapper h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

    .admin-form-card, .admin-faq-card {
        padding: 1rem;
    }

    .admin-button {
        width: 100%;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .admin-button-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

        .admin-button-group form {
            width: 100%;
        }
}
