/* assets/css/style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #8b5cf6;
    --secondary: #2dd4bf;
    --bg-deep: #070318;
    --bg-card: #1a0b2e;
    --text-light: #ffffff;
    --text-muted: #aaa;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-deep), #1a0b2e);
    color: var(--text-light);
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Glow */
.header-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 50px var(--primary);
    position: relative;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(15,6,35,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 20px;
    padding: 10px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    transition: all 0.3s;
    min-width: 120px;
}

.tab:hover {
    background: rgba(139,92,246,0.2);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 30px var(--primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover {
    background: var(--primary);
}

.btn-edit {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-edit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--secondary);
}

.btn-delete {
    background: #f56565;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-delete:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #f56565;
}

.btn-back {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
}

.btn-logout {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0,0,0,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}

/* Tables */
.table-container {
    background: rgba(15,6,35,0.7);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    border-radius: 20px;
    overflow: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(139,92,246,0.3);
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(139,92,246,0.2);
    color: #ddd;
}

tr:hover {
    background: rgba(139,92,246,0.1);
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}
.badge.success { background: #10b981; color: white; }
.badge.danger { background: #ef4444; color: white; }
.badge.warning { background: #f59e0b; color: white; }
.badge.info { background: #3b82f6; color: white; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}
.alert.success {
    background: rgba(16,185,129,0.2);
    border: 1px solid #10b981;
    color: #10b981;
}
.alert.error {
    background: rgba(239,68,68,0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}
.alert.warning {
    background: rgba(245,158,11,0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal.active { display: flex; }

.modal-content {
    background: var(--bg-deep);
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: white;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--primary);
    background: rgba(255,255,255,0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    height: auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}