
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #330000 50%, #000000 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    height: 100%;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-in;
}

.login-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    font-weight: bold;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #ccc;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #ff0000;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.2));
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, #ff0000 45%, transparent 45%),
                      linear-gradient(135deg, #ff0000 45%, transparent 45%);
    background-position: calc(100% - 15px) center, calc(100% - 10px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 35px;
    cursor: pointer;
}

select.form-input:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

select.form-input option {
    background: #000;
    color: #fff;
    border: 1px solid #ff0000;
}

select.form-input option:hover {
    background: #ff0000;
    color: #000;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-btn:hover {
    background: linear-gradient(45deg, #ff3333, #ff0000);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.sidebar {
    width: 250px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(0, 0, 0, 0.95));
    border-right: 2px solid #ff0000;
    padding: 20px;
}

.sidebar h2 {
    color: #ff0000;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8em;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px;
    color: #ccc;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 0, 0, 0.3);
    color: #ff0000;
    border-left: 3px solid #ff0000;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(139, 0, 0, 0.3));
}

.content-header {
    margin-bottom: 30px;
}

.content-title {
    font-size: 2.5em;
    color: #ff0000;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    border: 1px solid #ff0000;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5em;
    color: #ff0000;
    font-weight: bold;
}

.stat-label {
    color: #ccc;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
