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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #ff6b6b;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #ff6b6b;
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Demons Grid */
.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.search-filter input,
.search-filter select {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.search-filter input::placeholder {
    color: #cccccc;
}

.demons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.demon-card {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.demon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
}

.demon-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.demon-info {
    padding: 1.5rem;
}

.demon-position {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.demon-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

.demon-creator {
    color: #cccccc;
    margin-bottom: 1rem;
}

.demon-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff6b6b;
}

.demon-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demon-detail-title {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    height: 315px;
    margin: 2rem 0;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.records-section {
    margin-top: 2rem;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.records-table th,
.records-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.records-table th {
    background: #ff6b6b;
    color: white;
}

.flag {
    width: 24px;
    height: 16px;
    margin-right: 0.5rem;
}

/* Forms */
.record-form,
.login-form {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #ff6b6b;
}

.leaderboard-item {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-rank {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.player-points {
    font-size: 1.1rem;
    color: #ff6b6b;
    font-weight: bold;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.pending-record {
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #ffaa00;
}

.record-actions {
    margin-top: 1rem;
    gap: 1rem;
    display: flex;
}

.accept-btn {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.reject-btn {
    background: #f44336;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .demons-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .demon-detail-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demon-card,
.leaderboard-item,
.pending-record {
    animation: fadeIn 0.5s ease forwards;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}