:root {
    --primary: #00F0FF;
    /* Cyber Cyan */
    --secondary: #7000FF;
    /* Neon Deep Purple */
    --accent: #FF0055;
    /* Neon Pink/Red */
    --bg-dark: #05050A;
    /* Deepest black/blue */
    --surface: rgba(10, 10, 20, 0.65);
    --surface-hover: rgba(20, 20, 35, 0.85);
    --text-primary: #FFFFFF;
    --text-secondary: #8A99A8;
    --danger: #FF0055;
    --success: #00FF9D;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradients */
@keyframes breathingOrbs {
    0% {
        background-position: 0% 50%, 100% 50%;
    }

    50% {
        background-position: 100% 50%, 0% 50%;
    }

    100% {
        background-position: 0% 50%, 100% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 40%, rgba(112, 0, 255, 0.15), transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(0, 240, 255, 0.1), transparent 60%);
    background-size: 200% 200%;
    animation: breathingOrbs 15s ease infinite;
    background-color: var(--bg-dark);
    z-index: -1;
    pointer-events: none;
}

/* Subtle grid overlay for tech feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Components: Glassmorphism */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: skewX(-20deg);
    animation: panelShine 8s infinite;
}

@keyframes panelShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    /* More techy block buttons */
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-dark);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: none;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-primary:hover:after {
    opacity: 1;
}

.btn-outline {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    color: var(--primary);
}

.btn-danger {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.1);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
}

.btn-success:hover {
    background: var(--success);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert.danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: #FCA5A5;
}

.alert.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: #6EE7B7;
}

/* Login specific */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-glass {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 0 24px 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.sidebar-brand span {
    color: var(--primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
    flex: 1;
}

.nav-item {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(107, 70, 193, 0.2);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    max-width: 1400px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

/* Employee Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.employee-card {
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.6) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: 0;
}

.employee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.3);
}

.emp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.emp-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.emp-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.emp-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

.badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

/* Responsive Grid/Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        overflow: hidden;
    }

    .sidebar-brand,
    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 16px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Specific view wrappers */
.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .detail-wrapper {
        grid-template-columns: 1fr;
    }
}

.skills-matrix {
    margin-top: 16px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-left: 16px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal styles for forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

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

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}