/**
 * Popup & Fraud Report Modal Styles
 * HUMI Career Portal
 */

/* ===================================
   POPUP OVERLAY & CONTAINER
   =================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.4s ease-out;
}

.popup-container.scale-animation {
    animation: scaleUp 0.4s ease-out;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.popup-close i {
    font-size: 18px;
}

/* ===================================
   POPUP CONTENT
   =================================== */

.popup-header {
    background: linear-gradient(135deg, #004c97 0%, #0066cc 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-body {
    padding: 30px;
}

.popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.popup-image.position-top {
    margin-bottom: 20px;
}

.popup-image.position-left {
    float: left;
    width: 40%;
    margin-right: 20px;
    margin-bottom: 10px;
}

.popup-image.position-right {
    float: right;
    width: 40%;
    margin-left: 20px;
    margin-bottom: 10px;
}

.popup-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.popup-content p {
    margin-bottom: 15px;
}

.popup-content strong {
    color: #004c97;
}

.popup-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-primary {
    background: #004c97;
    color: white;
}

.popup-btn-primary:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 76, 151, 0.3);
}

.popup-btn-secondary {
    background: #6c757d;
    color: white;
}

.popup-btn-secondary:hover {
    background: #5a6268;
}

/* ===================================
   FRAUD REPORT MODAL
   =================================== */

.fraud-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.fraud-modal.active {
    display: flex;
}

.fraud-modal-content {
    background: white;
    max-width: 700px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.4s ease-out;
}

.fraud-modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fraud-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.fraud-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fraud-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.fraud-modal-body {
    padding: 30px;
}

.fraud-alert {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.fraud-alert strong {
    color: #856404;
}

.fraud-form-group {
    margin-bottom: 20px;
}

.fraud-form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.fraud-form-label .required {
    color: #dc3545;
    margin-left: 3px;
}

.fraud-form-input,
.fraud-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.fraud-form-input:focus,
.fraud-form-textarea:focus {
    outline: none;
    border-color: #004c97;
    box-shadow: 0 0 0 3px rgba(0, 76, 151, 0.1);
}

.fraud-form-input.error,
.fraud-form-textarea.error {
    border-color: #dc3545;
}

.fraud-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.fraud-form-help {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

.fraud-form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.fraud-form-error.active {
    display: block;
}

.fraud-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.fraud-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fraud-btn-submit {
    background: #004c97;
    color: white;
}

.fraud-btn-submit:hover:not(:disabled) {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 76, 151, 0.3);
}

.fraud-btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.fraud-btn-cancel {
    background: #6c757d;
    color: white;
}

.fraud-btn-cancel:hover {
    background: #5a6268;
}

/* Loading Spinner */
.fraud-btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .popup-container,
    .fraud-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .popup-body,
    .fraud-modal-body {
        padding: 20px;
    }
    
    .popup-footer,
    .fraud-modal-footer {
        padding: 0 20px 20px;
        flex-direction: column;
    }
    
    .popup-btn,
    .fraud-btn {
        width: 100%;
    }
    
    .popup-image.position-left,
    .popup-image.position-right {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }
}

@media (max-width: 480px) {
    .popup-header {
        padding: 20px;
    }
    
    .popup-header h2 {
        font-size: 18px;
    }
    
    .popup-content {
        font-size: 14px;
    }
    
    .fraud-modal-header h3 {
        font-size: 18px;
    }
}

