/* employer-style.css */

/* === 1. VARIABLES & BASE === */
:root {
    --bg: #09090b;         /* Zinc-950 */
    --card: #18181b;       /* Zinc-900 */
    --border: #27272a;     /* Zinc-800 */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;     /* Blue-500 */
    --accent-hover: #2563eb;
    --danger: #ef4444;
}

/* Reset allows Tailwind to work, but enforces our dark theme */
body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* === 2. COMPONENT CLASSES (Utilities) === */

/* Uniform Card Style */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Uniform Inputs */
.form-input, .form-textarea, .form-select {
    width: 100%;
    background-color: #000000; /* Darker than card */
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color 0.15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Buttons - Aligned with Tailwind sizing */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { background-color: var(--accent-hover); }

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

.btn-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid transparent; }
.btn-danger:hover { background-color: rgba(239, 68, 68, 0.2); border-color: var(--danger); }

/* === 3. LAYOUT HELPERS === */
.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 16rem; /* 64 tailwind unit */
    background-color: var(--bg);
    border-right: 1px solid var(--border);
    z-index: 40;
}

/* Mobile Menu Overlay overrides */
.mobile-sidebar-open {
    transform: translateX(0);
}
.mobile-sidebar-closed {
    transform: translateX(-100%);
}
/* Smooth slide for mobile sidebar */
aside {
    transition: transform 0.3s ease-in-out;
}

/* === NEW: Apple-style Glass Effect === */
.glass-panel {
    /* Dark background with 85% opacity */
    background-color: rgba(24, 24, 27, 0.85); 
    /* The magic blur effect */
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    /* A subtle border to define the edge */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* === UPDATED: Modal Styling === */
.modal-overlay {
    /* Darken the background behind the modal significantly */
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px); /* Slight blur on the whole screen behind modal */
    z-index: 60;
}

.modal-card {
    width: 100%;
    max-width: 36rem; /* Equivalent to max-w-xl */
    max-height: 90vh; /* Prevent it from being taller than screen */
    overflow-y: auto; /* Allow scrolling inside if content is long */
    border-radius: 1rem; /* Rounded corners like iOS */
    
    /* Apply the glass effect */
    background-color: rgba(24, 24, 27, 0.95); /* Slightly more solid for readability */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* === FIXING THE SPACING === */
    padding: 2rem; /* Much more breathing room (32px) */
}

/* Header/Body/Footer spacing helpers */
.modal-header { margin-bottom: 1.5rem; }
.modal-footer { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 1rem; }
.modal-title { font-size: 1.5rem; font-weight: 700; color: white; }