/* 
 * Smart 360 HR Portal - Complete Stylesheet (VibeCoding A++ Aesthetic)
 */

:root {
    --hr-primary: #4F46E5;
    --hr-primary-hover: #4338CA;
    --hr-secondary: #0EA5E9;
    --hr-bg: #F9FAFB;
    --hr-surface: #FFFFFF;
    --hr-text: #1F2937;
    --hr-text-light: #6B7280;
    --hr-border: #E5E7EB;
    --hr-radius: 12px;
    --hr-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.smart360-hr-wrap {
    max-width: 1000px;
    margin: 2rem auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.smart360-hr-dashboard,
.smart360-hr-candidate-form {
    background-color: var(--hr-surface);
    color: var(--hr-text);
    padding: 2.5rem;
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow);
    border: 1px solid var(--hr-border);
    max-width: 860px;
    margin: 2rem auto;
}

.hr-dashboard-header,
.hr-form-header {
    border-bottom: 1px solid var(--hr-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.smart360-hr-dashboard h2,
.smart360-hr-candidate-form h2 {
    color: #111827;
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.hr-subtitle {
    color: var(--hr-text-light);
    margin: 0;
    font-size: 1rem;
}

.hr-company-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF2FF;
    color: #3730A3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 8px;
    border: 1px solid #C7D2FE;
}

.hr-company-name {
    font-weight: 700;
}

.hr-form-section {
    background: #F9FAFB;
    border: 1px solid var(--hr-border);
    border-radius: 10px;
    padding: 20px;
}

.hr-section-title {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 8px;
}

.hr-section-title .dashicons {
    color: var(--hr-primary);
    font-size: 20px;
}

/* Actions */
.hr-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--hr-primary);
    color: #ffffff !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hr-btn:hover {
    background-color: var(--hr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.hr-btn-secondary {
    background-color: #059669;
}
.hr-btn-secondary:hover {
    background-color: #047857;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2);
}

.hr-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hr-btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background-color: #4F46E5;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.hr-btn-xs:hover {
    background-color: #4338CA;
}

.hr-btn-whatsapp {
    background-color: #25D366;
}
.hr-btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.2);
}

.hr-btn-submit-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 15px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* Link Alert Box */
.hr-link-copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hr-link-copy-box input {
    background: #FFFFFF;
    border: 1px solid #10B981;
    border-radius: 6px;
    color: #065F46;
}

/* Table */
.hr-practices-container h3 {
    font-size: 1.25rem;
    color: #1F2937;
    margin-bottom: 1rem;
}

.hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hr-border);
}

.hr-table th {
    background-color: #F9FAFB;
    color: #4B5563;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hr-border);
}

.hr-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hr-border);
    font-size: 0.9rem;
    color: #374151;
}

.hr-table tr:last-child td {
    border-bottom: none;
}

.hr-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hr-badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.hr-badge-success {
    background-color: #DEF7EC;
    color: #03543F;
}

.hr-badge-primary {
    background-color: #E0E7FF;
    color: #3730A3;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.hr-input,
.hr-select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111827;
    background-color: #FFFFFF;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hr-input:focus,
.hr-select:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.required {
    color: #EF4444;
    margin-left: 2px;
}

.form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--hr-text-light);
}

/* Upload Grid (Mobile Optimized) */
.hr-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hr-upload-card {
    background: #FFFFFF;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.hr-upload-card:hover {
    border-color: var(--hr-primary);
    background: #F8FAFC;
}

.hr-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.hr-upload-label .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--hr-primary);
    margin-bottom: 6px;
}

.hr-upload-label strong {
    font-size: 0.9rem;
    color: #1E293B;
    margin-bottom: 4px;
}

.hr-upload-hint {
    font-size: 0.78rem;
    color: #64748B;
    margin-bottom: 8px;
}

.hr-file-input {
    width: 100%;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Privacy Section Card */
.hr-privacy-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 18px;
}

.hr-privacy-header {
    background: #F1F5F9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #1E293B;
}

.hr-privacy-body {
    max-height: 180px;
    overflow-y: auto;
    background: #F8FAFC;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

.hr-privacy-ext-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hr-primary);
    text-decoration: underline;
}

/* Alerts */
.hr-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hr-alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.hr-alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.hr-alert-warning {
    background-color: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.hr-alert-info {
    background-color: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* Modal */
.hr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(2px);
}

.hr-modal-dialog {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.hr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--hr-border);
}

.hr-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.hr-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
}
.hr-modal-close:hover {
    color: #111827;
}

.hr-modal-body {
    padding: 1.75rem;
}

.hr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--hr-border);
    background-color: #F9FAFB;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .smart360-hr-dashboard,
    .smart360-hr-candidate-form {
        padding: 1.25rem;
        margin: 1rem auto;
    }
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .hr-upload-grid {
        grid-template-columns: 1fr;
    }
    .hr-upload-card {
        grid-column: span 1 !important;
    }
}
