/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin Header Styles */
.admin-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.admin-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #F3F4F6;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    width: 280px;
    height: 36px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    color: #374151;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: #374151;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFD6A8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #CD5700;
}

.header-right {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.job-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.job-listings-text h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 32px;
    line-height: 32px;
    letter-spacing: 0px;
    color: #0D0100;
}

.job-listings-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #0D0100;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Tabs Styles */

.jobs-content-container .tabs-container {
    padding: 20px 24px;
    border: 0.8px solid #E5E7EB;
}

.tab-buttons {
    display: flex;
    gap: 32px;
}

.tab-button {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button.active {
    color: #0D0100;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0D0100;
}

/* Job Table Styles */
.job-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 0;
}

.job-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #6b7280;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #F9FAFB;
}

.job-table td {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #0D0100;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.employment-type {
    display: inline-block;
    padding: 4px 6px;
    background: #DBEAFE;
    color: #1989FB;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.job-table tr:hover {
    background-color: #f9fafb;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #1989FB;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f3f4f6;
}

.edit-btn {
    color: #6b7280;
}

.delete-btn {
    color: #6b7280;
}

/* Header Styles – exclude shared .site-header and admin-header (see header.css) */
header:not(.site-header):not(.admin-header) {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header:not(.site-header):not(.admin-header) .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header:not(.site-header):not(.admin-header) h1 {
    font-size: 1.8rem;
}

header:not(.site-header):not(.admin-header) nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

header:not(.site-header):not(.admin-header) nav a:hover {
    background-color: #34495e;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #1989FB;
    color: #FFFFFF;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-style: medium;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0px;
    text-align: center;
    padding: 14px 16px;
}

.btn-success:hover {
    background-color: #1989FB;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Job Listing Styles */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.job-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.job-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.job-card .company {
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 8px;
}

.job-card .location {
    color: #95a5a6;
    margin-bottom: 10px;
}

.job-card .salary {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-card .description {
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Tab Content Styles */
.jobs-content-container {
    position: relative;
    min-height: 400px;
}

.tab-content {
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.tab-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.tab-content table {
    border: 0.8px solid #E5E7EB;
}

/* Location Icon Styles */
.location-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    transform: rotate(0deg);
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(68%) sepia(11%) saturate(247%) hue-rotate(191deg) brightness(94%) contrast(89%);
}

/* Avatar Dropdown Styles */
.avatar-dropdown {
    position: relative;
}

.avatar-dropdown .avatar {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.avatar-dropdown .avatar:hover {
    background-color: #f3f4f6;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    flex: 1;
}

.username {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.user-role {
    color: #6b7280;
    font-size: 12px;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-item svg {
    color: #6b7280;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 0;
}

.pagination-info {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-controls a,
.pagination-controls span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.pagination-controls a:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-controls .pagination-number.active {
    background-color: #1989fb;
    border-color: #1989fb;
    color: white;
}

.pagination-controls .pagination-dots {
    border: none;
    color: #6b7280;
}

.pagination-controls .pagination-arrow.disabled {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination-controls .pagination-arrow.disabled:hover {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

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

.job-listing-modal .modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease-in-out;
}

.job-listing-modal .modal-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.job-listing-modal .modal-icon {
    width: 48px;
    height: 48px;
    background-color: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.job-listing-modal .modal-icon img {
    width: 24px;
    height: 24px;
}

.job-listing-modal .modal-header h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #0F172B;
}

.job-listing-modal .modal-body {
    padding: 16px 24px;
}

.job-listing-modal .modal-body p {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    color: #45556C;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px 24px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-secondary {
    background-color: white;
    color: #0D0100;
    border: 1px solid #0D0100;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0%;
    vertical-align: middle;
}

.btn-secondary:hover {
    background-color: #f8f8f8;
}

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

.btn-danger:hover {
    background-color: #b91c1c;
}

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

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