:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-main: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.8);
    --input-bg: #1e293b;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #0f172a 100%);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    min-height: 100vh;
}

/* Glassmorphism Card */
.form-card {
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}

h2 {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(to right, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    background: var(--input-bg);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.form-control:focus {
    background: var(--input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: #fff;
}
input::placeholder,
textarea::placeholder {
    color: var(--primary) !important;
}
.btn {
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-add {
    background: var(--primary);
    color: white;
}
.btn-add:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-update {
    background: var(--success);
    color: white;
}
.btn-update:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Table Section */
.table-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.table {
    margin-bottom: 0;
    color: var(--text-white);
}

.table thead {
    background: rgba(99, 102, 241, 0.1);
}

.table thead th {
    padding: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    color: var(--primary);
}

.table tbody td {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-action {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.search-wrapper {
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 1.1rem;
    z-index: 5;
}

.search-input {
    padding-left: 50px !important;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}
/* Scrollbar Fix */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}
