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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: rgb(2, 32, 87);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: rgb(42, 194, 188);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 0;
}

.container {
    /* max-width: 1800px; */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    animation: fadeIn 1s ease-in;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

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

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

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

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

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

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-link {
    background: transparent;
    color: #667eea;
    padding: 0.5rem 1rem;
    text-decoration: underline;
}

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

/* Page Header */
.page-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    color: #667eea;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.role-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.role-card:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.role-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.role-card:nth-child(4) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.role-card:nth-child(5) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.role-card:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.role-card:nth-child(7) {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.role-card:nth-child(8) {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.5) 100%);
}

.role-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.5);
}

.role-image {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.role-icon {
    font-size: 4rem;
}

.role-content {
    padding: 1.5rem;
}

.role-content h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.role-positions {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.role-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.role-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.role-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.role-actions .btn {
    flex: 1;
    text-align: center;
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Role Info Box */
.role-info-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.role-info-box h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.role-info-box p {
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Worklist Table */
.worklist-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.worklist-container h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.worklist-table {
    width: 100%;
    border-collapse: collapse;
}

.worklist-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.worklist-table th,
.worklist-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.worklist-table tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-interview-scheduled {
    background: #d1ecf1;
    color: #0c5460;
}

.status-finalized {
    background: #e2d9f3;
    color: #5a2a82;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 15px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #667eea;
    margin: 0;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Interview Details */
.interview-details {
    font-size: 0.875rem;
}

.interview-details p {
    margin-bottom: 0.25rem;
}

.interview-details a {
    color: #667eea;
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.text-muted {
    color: #999;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.stat-primary { border-left: 5px solid #667eea; }
.stat-info { border-left: 5px solid #17a2b8; }
.stat-warning { border-left: 5px solid #ffc107; }
.stat-success { border-left: 5px solid #28a745; }
.stat-danger { border-left: 5px solid #dc3545; }
.stat-interview { border-left: 5px solid #6f42c1; }
.stat-finalized { border-left: 5px solid #764ba2; }

/* Pipeline Section */
.pipeline-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pipeline-section h2 {
    color: #667eea;
    margin-bottom: 2rem;
}

.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pipeline-stage {
    flex: 1;
    min-width: 150px;
}

.pipeline-stage-header {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.pipeline-stage-header h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pipeline-count {
    font-size: 2rem;
    font-weight: bold;
}

.stage-pending { background: #ffc107; }
.stage-accepted { background: #28a745; }
.stage-interview { background: #6f42c1; }
.stage-finalized { background: #764ba2; }
.stage-rejected { background: #dc3545; }

.pipeline-arrow {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.pipeline-rejected {
    margin-top: 2rem;
    text-align: center;
}

/* Role Stats Section */
.role-stats-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.role-stats-section h2 {
    color: #667eea;
    margin-bottom: 2rem;
}

.role-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.role-stat-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.role-stat-card:hover {
    border-color: #667eea;
}

.role-stat-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.role-stat-details {
    display: grid;
    gap: 0.75rem;
}

.role-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.role-stat-label {
    color: #666;
    font-size: 0.9rem;
}

.role-stat-value {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Manager Selection */
.manager-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.manager-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.manager-checkbox:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.manager-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Navbar */
.navbar {
    background: rgb(2, 32, 87);
    padding: 1rem;
    text-align: center;
    color: white;
}

/* Footer */
.footer {
    background: rgb(2, 32, 87);
    padding: 2rem;
    text-align: center;
    color: white;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(2, 32, 87, 0.3);
}

.footer p {
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Notification Badge */
.notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: none;
    min-width: 20px;
    text-align: center;
}

.notification-badge.show {
    display: inline-block;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Simplified Table */
.simplified-table {
    font-size: 1rem;
}

.simplified-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
}

.simplified-table td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
}

.simplified-table td strong {
    font-size: 1.1rem;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 100px;
}

.interview-info-inline {
    background: #e3f2fd;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

.interview-info-inline p {
    margin-bottom: 0.5rem;
    color: #333;
}

.interview-info-inline .btn {
    margin-top: 0.5rem;
}

.final-decision-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.final-decision-buttons .btn {
    flex: 1;
}

.worklist-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-info {
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
    color: #0c5460;
}

.alert strong {
    font-size: 1.1rem;
}

.interview-details-compact {
    font-size: 0.9rem;
}

.interview-details-compact p {
    margin: 0.25rem 0;
}

.interview-details-compact a {
    color: #667eea;
    text-decoration: underline;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    -webkit-appearance: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.rating-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .pipeline-container {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .worklist-table {
        font-size: 0.875rem;
    }

    .worklist-table th,
    .worklist-table td {
        padding: 0.5rem;
    }
}
