* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.close-btn:hover {
    opacity: 0.8;
}

.vendor-info {
    padding: 20px 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.vendor-info p {
    color: #333;
    font-size: 14px;
    margin-top: 15px;
}

.vendor-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.selection-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vendor-selection label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    min-width: 180px;
}

.vendor-selection select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    min-width: 400px;
    background: white;
}

.vendor-selection select:focus {
    outline: none;
    border-color: #0066cc;
}

.btn-primary {
    background: #0066cc;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    background: #0052a3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#assessment-status {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

#vendor-company-name {
    font-weight: 600;
    color: #0066cc;
}

.review-section {
    padding: 20px 30px;
}

.instruction {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

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

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

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: #fafafa;
}

.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
}

.actions {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-review {
    background: #ffa500;
    color: white;
}

.btn-review:hover {
    background: #ff8c00;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-reject:hover {
    background: #c82333;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-approve:hover {
    background: #218838;
}

.btn-save {
    background: #0066cc;
    color: white;
}

.btn-save:hover {
    background: #0052a3;
}

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

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

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.status-high {
    background: #fee;
    color: #d32f2f;
}

.status-medium {
    background: #fff3cd;
    color: #ff8c00;
}

.status-low {
    background: #d4edda;
    color: #28a745;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal for confirmations */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 20px;
    color: #555;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modal overlay for findings */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay .modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

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

/* Findings cards hover effect */
.findings-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.findings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Deep Audit button styling */
#deep-audit-btn {
    background: #ff9800 !important;
}

#deep-audit-btn:hover:not(:disabled) {
    background: #f57c00 !important;
}

#deep-audit-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Custom file input styling */
.file-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    width: auto;
}


.file-input-button {
    background: #e9ecef;
    color: #333;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #ced4da;
    min-width: 110px;
    text-align: center;
}

.file-input-text {
    color: #666;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
    font-weight: 500;
}

.file-input-text:not(:empty) {
    display: block;
    max-width: 150px;
    padding-left: 4px;
}
