:root {
    --bg-admin: #05050a;
    --sidebar-width: 280px;
    --header-height: 80px;
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #bd00ff;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 15, 25, 0.7);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020205;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    clip-path: circle(150% at 50% 50%);
    -webkit-clip-path: circle(150% at 50% 50%);
}

.transition-content {
    text-align: center;
    transform: translateY(0);
    opacity: 1;
    z-index: 100001;
}

.transition-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.transition-logo span {
    color: var(--primary);
}

.transition-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.transition-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Admin Security */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
[contenteditable="true"],
.admin-table td {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    background-color: var(--bg-admin);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.admin-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 15, 0.8);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 1.2rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
}

.nav-item.active {
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: white;
}

/* Content */
.content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-header {
    height: var(--header-height);
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.5);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    width: 300px;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
    width: 350px;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #00ff80;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #00ff80;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff80;
    animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.header-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* Views */
.view {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.stat-trend {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-trend.positive {
    color: #00ff80;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-container {
    padding: 2rem;
}

.recent-activity {
    padding: 2rem;
}

.activity-list {
    list-style: none;
    margin-top: 1.5rem;
}

.activity-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.activity-list li:last-child {
    border: none;
}

.time {
    font-size: 0.75rem;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

/* Tables */
.view-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table tr:last-child td {
    border: none;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.slide-thumb {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.edit-btn {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.delete-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

/* Resume link hover */
.admin-table a:hover {
    text-decoration: underline !important;
    filter: brightness(1.3);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(0, 255, 128, 0.1);
    color: #00ff80;
}

.status-badge.expired {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-group input,
.admin-input-select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.admin-input-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.admin-input-select option {
    background: #0a0a0f;
    color: white;
}

.form-group input:focus,
.admin-input-select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.btn.outline:hover {
    border-color: white;
    color: white;
}