/* =========================
   ADMIN LAYOUT BASE
========================= */

.admin-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.dashboard {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* control cards */
.admin-card {
    padding: 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}

/* login box */
.admin-login {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

/* inputs */
.admin-input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-family: inherit;
}

.admin-textarea {
    min-height: 150px;
    resize: vertical;
}

/* admin title */
.admin-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.faq-item {
    transition: transform 0.2s ease;
}

.faq-item:active {
    cursor: grabbing;
    transform: scale(1.01);
}

.faq-item-inner {
    display: flex;
    /* justify-content: space-between; */
    gap: 20px;
    flex-direction: column;
}

.faq-item-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    min-width: 120px;
    align-items: center;
}

.faq-edit.hidden {
    display: none;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: rgba(39, 36, 71, 0.95);
    backdrop-filter: blur(10px);

    border-radius: 12px;
    margin-top: 5px;

    max-height: 200px;
    overflow-y: auto;

    z-index: 999;
}

.category-option {
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
}

.category-option:hover {
    background: rgba(255,255,255,0.1);
}

.rating-input {
    display: flex;
    gap: 4px;
    font-size: 24px;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

.star.full {
    color: gold;
}

.star.half {
    background: linear-gradient(90deg, gold 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.star {
    font-size: 20px;
    color: #ccc;
}

.star.full {
    color: gold;
}

.star.half {
    background: linear-gradient(90deg, gold 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}