/* ============================================================
   FLAG-DROPDOWN.CSS - Flag Report Dropdown Styles
   ============================================================ */

/* Overlay backdrop */
.flag-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.flag-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

.flag-dropdown {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.flag-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.flag-dropdown-content {
    padding: 24px;
}

.flag-dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    text-align: center;
}

.flag-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.flag-reason-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flag-reason-option:hover {
    border-color: #2563eb;
    background: #f9fafb;
}

.flag-reason-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.flag-reason-option input[type="radio"]:checked + span {
    color: #2563eb;
    font-weight: 600;
}

.flag-reason-option span {
    color: #374151;
    font-size: 14px;
    flex: 1;
}

#flag-description-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

#flag-description-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

#flag-description {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#flag-description:focus {
    outline: none;
    border-color: #2563eb;
}

.flag-char-counter {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

.flag-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 12px;
}

.flag-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.flag-cancel-btn,
.flag-submit-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flag-cancel-btn {
    background: #f3f4f6;
    color: #374151;
}

.flag-cancel-btn:hover {
    background: #e5e7eb;
}

.flag-submit-btn {
    background: #2563eb;
    color: white;
}

.flag-submit-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.flag-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Success state */
.flag-success {
    text-align: center;
    padding: 20px 0;
}

.flag-success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.flag-success h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.flag-success p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.flag-close-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flag-close-btn:hover {
    background: #1d4ed8;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .flag-dropdown {
        width: calc(100vw - 32px);
        /* Keep centered positioning - don't override */
    }
    
    .flag-dropdown-content {
        padding: 20px;
    }
    
    .flag-dropdown-title {
        font-size: 16px;
    }
    
    .flag-reason-option {
        padding: 10px;
    }
    
    .flag-reason-option span {
        font-size: 13px;
    }
}
