/* ============================================
   AIML Staffing - Admin Panel Styles
   ============================================ */

:root {
    --admin-sidebar-width: 260px;
    --admin-header-height: 60px;
    --primary-blue: #1E90FF;
    --dark-bg: #1e293b;
    --dark-sidebar: #0f172a;
    --light-bg: #f3f4f6;
}

body.admin-body {
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--dark-sidebar);
    color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    height: var(--admin-header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border-right: 3px solid var(--primary-blue);
}

.sidebar-link i {
    width: 24px;
    margin-right: 0.75rem;
}

/* Main Content */
.admin-main {
    margin-left: var(--admin-sidebar-width);
    padding: 2rem;
    padding-top: calc(var(--admin-header-height) + 2rem);
    transition: all 0.3s ease;
}

/* Top Bar */
.admin-topbar {
    height: var(--admin-header-height);
    margin-left: var(--admin-sidebar-width);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

/* Cards */
.admin-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    height: 100%;
}

.stat-card {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.bg-blue-soft {
    background-color: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
}

.bg-green-soft {
    background-color: rgba(0, 196, 159, 0.1);
    color: #00C49F;
}

.bg-yellow-soft {
    background-color: rgba(255, 187, 40, 0.1);
    color: #FFBB28;
}

.bg-red-soft {
    background-color: rgba(255, 128, 66, 0.1);
    color: #FF8042;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1E90FF 0%, #00C49F 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table th {
    font-weight: 600;
    color: #4b5563;
    background-color: #f9fafb;
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-main,
    .admin-topbar {
        margin-left: 0;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }
}