/* Admin Panel Styles */

/* General Layout */
.admin-container {
    padding: 20px;
}

/* Sidebar */
.sidebar {
    background-color: #212529;
    border-right: 1px solid #343a40;
    min-height: 100vh;
    padding: 0;
    width: 250px;
    position: sticky;
    top: 0;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Collapsible Menu */
.sidebar .collapse,
.sidebar .collapsing {
    transition: height 0.35s ease;
}

.sidebar .collapse {
    display: none;
}

.sidebar .collapse.show {
    display: block;
}

.sidebar .nav-link[href="javascript:void(0);"] {
    cursor: pointer;
}

.sidebar .nav-link[href="javascript:void(0);"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Submenu styling */
.sidebar .nav-item .nav-item .nav-link {
    padding-left: 30px;
    font-size: 0.9rem;
}

.sidebar .text-uppercase {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

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

.dashboard-card .card-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table tbody tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* Pagination */
.pagination {
    margin: 1.5rem 0 0;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 4px !important;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: 0;
        height: auto;
        margin-bottom: 20px;
    }
    
    .dashboard-card {
        margin-bottom: 15px;
    }
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Application Status Colors */
.bg-status-new {
    background-color: #0d6efd;
}

.bg-status-underreview {
    background-color: #ffc107;
    color: #212529;
}

.bg-status-interview {
    background-color: #fd7e14;
}

.bg-status-offer {
    background-color: #198754;
}

.bg-status-hired {
    background-color: #198754;
}

.bg-status-rejected {
    background-color: #dc3545;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}
