/* Admin Panel CSS - Material Blue Theme */
:root {
  --primary-color: #1976D2;
  --primary-light: #63A4FF;
  --primary-dark: #004BA0;
  --secondary-color: #FFA000;
  --secondary-light: #FFD149;
  --secondary-dark: #C67100;
  --text-primary: #212121;
  --text-secondary: #757575;
  --divider-color: #BDBDBD;
  --background: #F5F5F5;
  --card-bg: #FFFFFF;
  --error-color: #D32F2F;
  --success-color: #388E3C;
  --warning-color: #FFA000;
  --info-color: #1976D2;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* background-color: var(--background); */
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* Material Card Style */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px 8px 0 0 !important;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

/* Enhanced Nav Tabs */
.nav-tabs {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(25, 118, 210, 0.05);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 600;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* Beautiful Buttons */
.btn {
  border-radius: 4px;
  font-weight: 500;
  /* padding: 0.5rem 1.25rem; */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn:active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Enhanced Form Controls */
.form-control {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* padding: 0.75rem 1rem; */
  transition: all 0.3s ease;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Rich Textarea */
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Custom Checkboxes and Radios */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
}

.form-check-label {
  margin-left: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* Custom Switch */
.form-switch .form-check-input {
  width: 2.5em;
  height: 1.5em;
}

/* DataTables Customization */
.dataTables_wrapper {
  padding: 0;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  border: 1px solid #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 4px !important;
  margin: 0 2px;
  transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
}

/* Alert Styles */
.alert {
  border-radius: 6px;
  padding: 1rem 1.25rem;
  border: none;
}

.alert-primary {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
}

.alert-success {
  background-color: rgba(56, 142, 60, 0.1);
  color: #2E7D32;
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: rgba(211, 47, 47, 0.1);
  color: #C62828;
  border-left: 4px solid var(--error-color);
}

/* Table Enhancements */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  padding: 1rem;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card {
    border-radius: 0;
  }
  
  .nav-tabs .nav-link {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .form-control {
    padding: 0.65rem 0.9rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Animation for Page Load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-content {
  animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Tooltip Enhancements */
.tooltip-inner {
  background-color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: var(--primary-dark);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 12px;
  font-size: 0.75em;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

/* Dropdown Enhancements */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-dark);
}

.dropdown-divider {
  border-color: rgba(0, 0, 0, 0.05);
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  font-weight: 600;
}

.close {
  color: white;
  opacity: 0.8;
  text-shadow: none;
}

.close:hover {
  color: white;
  opacity: 1;
}

/* Navbar Enhancements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  background-color: white;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-dark) !important;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Sidebar Navigation */
.sidebar {
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding-top: 1rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link {
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  border-radius: 0 30px 30px 0;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-color);
}

.sidebar .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.sidebar .nav-link i {
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

/* Dashboard Cards */
.dashboard-card {
  border-radius: 8px;
  padding: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.dashboard-card .card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.dashboard-card .card-value {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-active {
  background-color: var(--success-color);
}

.status-inactive {
  background-color: var(--error-color);
}

.status-pending {
  background-color: var(--warning-color);
}

/* Progress Bars */
.progress {
  height: 27px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
  background-color: var(--primary-color);
  font-size: 10px;
  padding: 5px;
}

/* Custom Toggle Switch */
.custom-switch .custom-control-label::before {
  height: 1.5rem;
  border-radius: 1rem;
}

.custom-switch .custom-control-label::after {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 1.5rem;
  transform: translateX(0.25rem);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  transform: translateX(1.75rem);
  background-color: white;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1001;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .navbar-toggler {
    display: block;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
      /* Main Container */
    .candidate-container {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
        padding: 25px;
        margin-top: 20px;
    }
    
    /* Header Styles */
    .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .page-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
    }
    
    /* Action Buttons */
    .action-buttons {
        display: flex;
        gap: 10px;
    }
    
    .action-btn {
        border-radius: 6px;
        font-weight: 500;
        padding: 8px 15px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    /* Status Filter Buttons */
    .status-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .status-button {
        border-radius: 20px;
        padding: 6px 15px;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
        background: #f8f9fa;
        color: #495057;
        text-decoration: none;
        white-space: nowrap;
    }
    
    .status-button:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }
    
    .status-button.active {
        background: #4e73df;
        color: white;
        border-color: #4e73df;
        box-shadow: 0 2px 5px rgba(78, 115, 223, 0.3);
    }
    
    /* Table Styles */
    .candidate-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    .candidate-table thead th {
        background-color: #f8f9fc;
        color: #5a5c69;
        font-weight: 600;
        padding: 12px 15px;
        border-bottom: 2px solid #e3e6f0;
    }
    
    .candidate-table tbody td {
        padding: 12px 15px;
        vertical-align: middle;
        border-bottom: 1px solid #e3e6f0;
    }
    
    .candidate-table tbody tr:hover {
        background-color: #f8f9fa;
    }
    
    /* Status Dropdown */
    .status-dropdown {
        border-radius: 4px;
        padding: 5px 10px;
        border: 1px solid #ddd;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.3s;
        width: 100%;
    }
    
    .status-dropdown:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }
    
    /* Action Buttons in Table */
    .table-action-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
        border-radius: 4px;
        margin-right: 5px;
        transition: all 0.2s;
    }
    
    .table-action-btn:hover {
        transform: translateY(-1px);
    }
    
    .btn-edit {
        background: #f6c23e;
        border-color: #f6c23e;
        color: #fff;
    }
    
    .btn-delete {
        background: #e74a3b;
        border-color: #e74a3b;
        color: #fff;
    }
    
    .btn-contract {
        background: #36b9cc;
        border-color: #36b9cc;
        color: #fff;
    }
    
    /* Alert Styles */
    .alert-notification {
        border-radius: 6px;
        padding: 12px 20px;
        margin-bottom: 20px;
        border: 1px solid transparent;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .page-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        .action-buttons {
            width: 100%;
            flex-wrap: wrap;
        }
        
        .status-buttons {
            overflow-x: auto;
            padding-bottom: 10px;
            flex-wrap: nowrap;
            -webkit-overflow-scrolling: touch;
        }
    }
    
    /* Custom Scrollbar for DataTable */
    .dataTables_scrollBody::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }
    
    .dataTables_scrollBody::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .dataTables_scrollBody::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
        .sortable-item {
            cursor: move;
        }
        
        input[type=checkbox], 
        input[type=radio] {
            box-sizing: border-box;
            padding: 0;
            display: block;
        }
        
        .navbar {
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .nav-item {
            margin-right: 5px;
        }
        
        .nav-link {
            padding: 8px 15px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background-color: rgba(0,0,0,0.05);
        }
        
        .dropdown-menu {
            border: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .dropdown-item {
            padding: 8px 15px;
            transition: all 0.2s ease;
        }
        
        .dropdown-item:hover {
            background-color: #f8f9fa;
        }
        
        .marquee-container {
            background-color: #f8f9fa;
            padding: 8px 0;
            margin-bottom: 20px;
            border-radius: 4px;
        }
        
        .container {
            padding-top: 10px;
        }
        
        .alert {
            margin-bottom: 20px;
        }
        
        .navbar-brand img {
            transition: transform 0.3s ease;
        }
        
        .navbar-brand:hover img {
            transform: scale(1.05);
        }
        
        .fa-icon {
            margin-right: 8px;
            width: 20px;
            text-align: center;
        }

            /* Custom CSS for Candidate Edit Form */
    .candidate-edit-container {
        padding: 20px 0;
    }
    
    .section-header {
        position: relative;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        color: #1976D2;
        font-weight: 600;
        display: flex;
        align-items: center;
    }
    
    .section-divider {
        height: 2px;
        background: linear-gradient(90deg, #1976D2 0%, rgba(25, 118, 210, 0.1) 100%);
        margin-top: 0.5rem;
    }
    
    .form-label {
        font-weight: 500;
        color: #455A64;
        margin-bottom: 0.5rem;
    }
    
    .form-control-lg, .form-select.form-control-lg {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        border: 1px solid #E0E0E0;
        transition: all 0.3s;
    }
    
    .form-control-lg:focus, .form-select.form-control-lg:focus {
        border-color: #1976D2;
        box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    }
    
    .input-group-text {
        background-color: #f5f5f5;
    }
    
    .btn-lg {
        font-weight: 500;
        letter-spacing: 0.5px;
        border-radius: 6px;
    }
    
    .img-thumbnail {
        border-radius: 6px;
        border: 1px solid #E0E0E0;
    }
    
    .invalid-feedback {
        display: none;
        font-size: 0.875rem;
    }
    
    .is-invalid {
        border-color: #D32F2F !important;
    }
    
    .is-invalid + .invalid-feedback {
        display: block;
    }
    
    @media (max-width: 768px) {
        .section-title {
            font-size: 1.25rem;
        }
        
        .form-control-lg, .form-select.form-control-lg {
            padding: 0.65rem 0.9rem;
        }
    }
     /* Visa Round Specific Styles */
    .candidate-edit-container {
        padding: 20px 0;
    }

    .section-header {
        position: relative;
        margin-bottom: 1.5rem;
    }

    .section-title {
        color: #1976D2;
        font-weight: 600;
        display: flex;
        align-items: center;
        font-size: 1.25rem;
    }

    .section-divider {
        height: 2px;
        background: linear-gradient(90deg, #1976D2 0%, rgba(25, 118, 210, 0.1) 100%);
        margin-top: 0.5rem;
    }

    .form-label {
        font-weight: 500;
        color: #455A64;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        border-radius: 4px;
        border: 1px solid #E0E0E0;
        transition: all 0.3s;
        /* padding: 0.5rem 0.75rem; */
    }

    .form-control:focus {
        border-color: #1976D2;
        box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
    }

    .input-group-text {
        background-color: #f5f5f5;
        border-right: none;
    }

    .input-group .form-control {
        border-left: none;
    }

    .btn-primary {
        background-color: #1976D2;
        border-color: #1976D2;
        padding: 0.5rem 1.5rem;
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .section-title {
            font-size: 1.1rem;
        }
        
        .form-control {
            padding: 0.4rem 0.65rem;
        }
    }
    .card {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.card {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.table th, .table td {
    vertical-align: middle;
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 81%;
    }
}