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

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #4a3f8e;
    color: #e0d4ff;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.4), 0 0 25px rgba(0, 212, 255, 0.15);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }

/* Links */
a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c4b5fd;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #d63384 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.12);
    color: #e0d4ff;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #e0d4ff;
    box-shadow: none;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c4b5fd;
    text-shadow: 0 0 6px rgba(196, 181, 253, 0.15);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: rgba(8, 4, 20, 0.60);
    color: #e0d4ff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2), 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Cards */
.card {
    background: rgba(10, 5, 25, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.12);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.card-title {
    margin: 0;
    color: #00d4ff;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: rgba(124, 58, 237, 0.2);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #00d4ff;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(26, 42, 26, 0.6);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.alert-danger {
    background: rgba(42, 26, 26, 0.6);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.alert-warning {
    background: rgba(42, 36, 20, 0.6);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.alert-info {
    background: rgba(20, 30, 42, 0.6);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-success {
    background: #2ecc71;
}

.badge-danger {
    background: #e74c3c;
}

.badge-warning {
    background: #f39c12;
}

/* Loading */
.spinner {
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1035;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: auto;
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #e0d4ff;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    background: transparent;
    border: none;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-info {
    padding: 30px;
    background: #1a1035;
    color: #e0d4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 15px;
    }
}
