﻿.appeal_row {
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .appeal_row:hover {
        background: #f9fafb;
        transform: scale(1.01);
    }

/* Backdrop styling */
#appeal-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* Dialog container */
#appeal-dialog {
    border: none;
    padding: 0;
    width: min(800px, 95vw);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fadeIn 0.25s ease-in-out;
}

/* Shell layout */
.dialog-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
}

/* Header */
.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid #e5e7eb;
}

    .dialog-header h2 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: #111827;
        letter-spacing: 0.3px;
    }

/* Body */
.dialog-body {
    padding: 24px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.field {
    display: grid;
    gap: 6px;
}

.field-colspan {
    grid-column: 1 / -1;
}

/* Labels */
label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* Inputs, selects, textareas */
input, textarea, select {
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #111827;
    width: 100%;
    background: #fff;
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    }

/* Textareas */
textarea {
    resize: vertical;
    min-height: 90px;
}

/* Footer */
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

    /* Buttons */
    .dialog-footer .btn {
        padding: 10px 18px;
        font-size: 0.95rem;
        border: none;
        cursor: pointer;
        background: #2563eb;
        color: #fff;
        font-weight: 500;
        transition: background 0.2s ease;
        border-radius: 0;
    }

        .dialog-footer .btn:hover {
            background: #1d4ed8;
        }

        .dialog-footer .btn.cancel {
            background: #e5e7eb;
            color: #111827;
        }

            .dialog-footer .btn.cancel:hover {
                background: #d1d5db;
            }

/* Skeleton Loader */
.skeleton .sk-row {
    height: 14px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 10px 0;
}

    .skeleton .sk-row.wide {
        width: 80%;
    }

/* Responsive */
@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}
