* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Notification System */
.notification-container {
    position: relative;
}

.notification-bell {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-height: 500px;
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 3px solid #2196F3;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #999;
}

.notification-candidate {
    font-weight: 500;
    color: #667eea;
}

.notification-time {
    color: #999;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #ff4444;
}

.notification-footer {
    padding: 10px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    background: #f8f9fa;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
    padding: 0;
}

.btn-link:hover {
    color: #764ba2;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    min-width: 300px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.toast-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #ff4444;
}

.user-info span {
    font-size: 0.95em;
}

#user-name {
    font-weight: 600;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 80px;
    max-width: 300px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-letter {
    font-size: 5em;
    font-weight: 900;
    color: #1a3a5f;
    line-height: 1;
    font-family: 'Arial', 'Helvetica', sans-serif;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transform: perspective(100px) rotateY(-5deg);
}

.logo-words {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo-aspire {
    font-size: 2em;
    font-weight: 800;
    color: #1a3a5f;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-global {
    font-size: 1.5em;
    font-weight: 800;
    color: #1a3a5f;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f5f5f5;
}

.tabs::-webkit-scrollbar {
    height: 8px;
}

.tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.tabs::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-btn:hover {
    background: #e8e8e8;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.toolbar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.toolbar input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.candidate-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.candidate-card-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.candidate-card-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.candidate-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 15px;
}

.candidate-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.candidate-photo img:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.candidate-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
    min-width: 0;
}

.candidate-header > div:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.candidate-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.candidate-email {
    color: #666;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.candidate-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-hired {
    background: #d1ecf1;
    color: #0c5460;
}

.status-hired-1st-lot {
    background: #d1ecf1;
    color: #0c5460;
}

.status-hired-2nd-lot {
    background: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background: #f5c6cb;
    color: #721c24;
}

.status-potential {
    background: #fff3cd;
    color: #856404;
}

.status-referral {
    background: #d1ecf1;
    color: #0c5460;
}

.status-deleted {
    background: #6c757d;
    color: white;
    opacity: 0.8;
}

.candidate-deleted {
    opacity: 0.7;
    border: 1px dashed #999;
}

.candidate-deleted:hover {
    opacity: 0.9;
}

.candidate-info {
    margin: 15px 0;
    color: #666;
    font-size: 0.95em;
    min-width: 0;
    overflow-wrap: break-word;
}

.candidate-info p {
    margin: 5px 0;
}

.candidate-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    white-space: nowrap;
    font-weight: 500;
    color: #333;
}

.filter-group select {
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.filter-group select:hover {
    border-color: #667eea;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
    flex-wrap: wrap;
}

.documents-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.document-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.document-meta {
    font-size: 0.85em;
    color: #666;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-large {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    width: 95%;
}

/* Document Viewer Modal */
.document-viewer-content {
    max-width: 95%;
    max-height: 95vh;
    width: 95%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.document-viewer-content h2 {
    padding: 20px 30px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.document-viewer-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.document-viewer-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 10px;
}

.document-viewer-body iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background: white;
}

.document-viewer-footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    text-align: right;
    background: white;
}

/* Remarks Tab Styles */
.remarks-list-all {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.remark-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.remark-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.remark-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.remark-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remark-card-author strong {
    color: #333;
    font-size: 1em;
}

.remark-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.remark-card-candidate {
    margin: 10px 0;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9em;
}

.remark-card-candidate .candidate-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.remark-card-candidate .candidate-link:hover {
    text-decoration: underline;
}

.remark-card-content {
    margin: 15px 0;
    padding: 15px;
    background: #fafafa;
    border-left: 3px solid #667eea;
    border-radius: 4px;
}

.remark-card-content p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.remark-card-interview {
    margin: 10px 0;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 0.85em;
    color: #1976d2;
}

.remark-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.interviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interview-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    transition: all 0.3s;
}

.interview-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.interview-info {
    flex: 1;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.interview-details {
    color: #666;
    font-size: 0.95em;
}

.interview-details p {
    margin: 5px 0;
}

.interview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Reports Styles */
.reports-container {
    padding: 20px;
}

.reports-header {
    margin-bottom: 30px;
}

.reports-header h2 {
    margin-bottom: 20px;
    color: #333;
}

.report-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.report-filters input,
.report-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.report-filters input[type="date"] {
    min-width: 150px;
}

.report-filters select {
    min-width: 150px;
}

.report-summary {
    margin-bottom: 40px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card-clickable {
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.summary-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.summary-value {
    font-size: 36px;
    font-weight: bold;
}

.summary-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.chart-container {
    min-height: 150px;
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-label {
    min-width: 100px;
    font-size: 14px;
    color: #666;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-bar {
    height: 24px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    min-width: 20px;
}

.chart-value {
    min-width: 30px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.report-details {
    margin-top: 40px;
}

.report-details h3 {
    margin-bottom: 20px;
    color: #333;
}

.report-date-group {
    margin-bottom: 40px;
}

.report-date-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin: 0;
    font-size: 18px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.report-table thead {
    background: #f8f9fa;
}

.report-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.report-table tbody tr:hover {
    background: #f8f9fa;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-scheduled {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-rescheduled {
    background: #fff3cd;
    color: #856404;
}

/* Remarks View Styles */
.remarks-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remarks-list {
    max-height: 60vh;
    overflow-y: auto;
}

.remark-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.remark-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.remark-header strong {
    color: #333;
    font-size: 16px;
}

.remark-role {
    color: #666;
    font-size: 12px;
    margin-left: 8px;
}

.remark-type {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.remark-content {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.remark-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.remark-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.remark-date {
    color: #999;
    font-size: 12px;
}

.remark-interview {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
}

.remark-actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.badge-internal {
    background: #fff3cd;
    color: #856404;
}

.badge-public {
    background: #d1ecf1;
    color: #0c5460;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .tabs {
        padding: 0;
    }
    
    .tab-btn {
        padding: 12px 18px;
        font-size: 0.9em;
    }
    
    .report-filters {
        flex-direction: column;
    }
    
    .report-filters input,
    .report-filters select {
        width: 100%;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .summary-charts {
        grid-template-columns: 1fr;
    }
    
    .report-table {
        font-size: 12px;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 4px;
    }
    
    .remark-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .remark-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .notification-dropdown {
        width: 100%;
        right: 0;
        left: 0;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: 100%;
    }
    
    .toast-notification {
        min-width: auto;
    }
}

/* Hired Candidates Report Styles */
.hired-candidates-container {
    padding: 20px 0;
}

.hired-candidates-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.hired-candidate-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Missing Documents Section */
.report-section {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #333;
}

.missing-docs-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.missing-docs-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.missing-docs-filters input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.combined-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.filter-group {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.filter-group h4 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #495057;
    cursor: pointer;
    padding: 4px 0;
}

.filter-checkboxes input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.missing-documents-container {
    min-height: 200px;
}

.missing-docs-table-container {
    overflow-x: auto;
}

.missing-doc-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.missing-count {
    display: inline-block;
    padding: 4px 12px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1em;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-top: 10px;
}

.photo-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.photo-preview {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.photo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Photo Capture Modal */
.photo-capture-container {
    padding: 20px;
    text-align: center;
}

.webcam-container {
    margin: 20px auto;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#webcam-video {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #webcam-video {
        max-width: 100%;
        max-height: 60vh;
    }
    
    .webcam-container {
        max-width: 100%;
        margin: 10px auto;
    }
    
    .webcam-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .webcam-controls button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

.webcam-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.captured-photo-preview {
    margin: 20px auto;
    max-width: 640px;
}

#captured-photo-img {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 8px;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.invalid-email-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.invalid-phone-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.expired-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.urgent-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.warning-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.info-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.candidate-details-section {
    margin-bottom: 20px;
}

.candidate-details-section h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.candidate-details-section h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #555;
}

.candidate-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.candidate-details-grid > div {
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Document Upload Grid */
.document-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.document-type-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
}

.document-type-box:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.document-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.document-type-icon {
    font-size: 24px;
}

.document-type-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.document-drop-zone {
    min-height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.document-drop-zone:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.document-drop-zone.drag-over {
    border-color: #667eea;
    background: #e8edff;
    transform: scale(1.02);
}

.file-input-hidden {
    display: none;
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.drop-zone-text {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin: 5px 0;
}

.drop-zone-subtext {
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

.file-list {
    margin-top: 15px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-name {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

/* Existing Documents Display */
.existing-documents-container {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.existing-documents-header {
    font-size: 13px;
    color: #667eea;
    margin-bottom: 8px;
    padding: 5px 0;
}

.existing-documents-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.existing-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f0f4ff;
    border: 1px solid #d0d9ff;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.existing-document-item:hover {
    background: #e8edff;
    border-color: #667eea;
}

.existing-doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.existing-doc-name {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.existing-doc-meta {
    color: #666;
    font-size: 11px;
}

.existing-doc-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 10px;
}

.existing-doc-actions .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

@media (max-width: 768px) {
    .document-upload-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-large {
        width: 98%;
        max-height: 95vh;
    }
    
    .existing-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .existing-doc-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* Form Row Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Companies and Job Requirements Styles */
.companies-grid,
.job-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.company-card,
.job-requirement-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.company-card:hover,
.job-requirement-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.badge-dubai {
    background: #007bff;
    color: white;
}

.badge-nepal {
    background: #28a745;
    color: white;
}

/* Payment Cards Styles */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.payment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.payment-card.overdue {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.payment-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.payment-card .card-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.payment-card .card-header small {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 4px;
}

.payment-card .card-body {
    margin-bottom: 15px;
}

.payment-card .card-body > div {
    margin-bottom: 12px;
    line-height: 1.6;
}

.payment-card .card-body strong {
    color: #333;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.payment-card .card-footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Badge Styles for Payments */
.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

