:root {
    --primary-color: #34495e;
    --secondary-color: #64b5f6;
    --secondary-color-dark: #42a5f5;
    --accent-color: #ff8a65;
    --accent-color-dark: #ff7043;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #e8ecf1;
    --success-color: #81c784;
    --hover-color: #f8f9fb;
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Menu */
.nav-menu {
    background: linear-gradient(145deg, var(--primary-color), #2c3e50);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.nav-menu li a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 500;
}

.nav-menu li a i {
    font-size: 1.2rem;
}

/* Header Styling */
.header {
    background: linear-gradient(145deg, var(--primary-color), #2c3e50);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Card Styling */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Button Styling */
.btn {
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    letter-spacing: 0.3px;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(145deg, var(--secondary-color), var(--secondary-color-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(145deg, var(--secondary-color-dark), var(--secondary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-danger {
    background: linear-gradient(145deg, var(--accent-color), var(--accent-color-dark));
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(145deg, var(--accent-color-dark), var(--accent-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: linear-gradient(145deg, #cbd5e0, #a0aec0);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #a0aec0, #cbd5e0);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Table Styling */
:root {
    --stripe-color: rgba(247, 249, 252, 0.8);
    --hover-stripe-color: rgba(244, 246, 250, 0.9);
}

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: none;
    margin: 2rem auto;
}

.table {
    width: 100%;
    margin-bottom: 0;
    background: transparent;
    border-collapse: collapse;
}

.table thead th {
    background: linear-gradient(145deg, var(--primary-color), #2c3e50);
    color: white;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-bottom: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 0.7rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: #505c6b;
    transition: background-color 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background-color: var(--stripe-color);
}

.table tbody tr:hover {
    background-color: var(--hover-color);
}

.table tbody tr:nth-child(even):hover {
    background-color: var(--hover-stripe-color);
}

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

/* Form Styling */
.job-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

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

.form-control {
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background-color: #fff;
}

.form-control:hover {
    border-color: var(--secondary-color);
    background-color: var(--hover-color);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    min-height: 100px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
}

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

/* Animations */
.job-form {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: none;
}

.job-form.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--accent-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
    }
    
    .job-form {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}
