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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
}

/* Pantalla de autenticación */
.auth-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    background: rgba(22, 33, 62, 0.9);
    border: 2px solid #8B0000;
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(139, 0, 0, 0.3);
    text-align: center;
}

.auth-container h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #8B0000;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
}

.auth-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.auth-form h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.auth-input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #8B0000;
    background: rgba(255, 255, 255, 0.08);
}

.auth-button {
    width: 100%;
    padding: 15px;
    margin: 20px 0 10px 0;
    background: linear-gradient(135deg, #8B0000, #660000);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: linear-gradient(135deg, #660000, #440000);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
}

.auth-button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    margin-top: 15px;
    color: #aaa;
    font-size: 0.9em;
}

.auth-switch a {
    color: #8B0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #ff0000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #444;
}

.user-info span {
    color: #8B0000;
    font-weight: bold;
}

.logout-button {
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #8B0000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.logout-button:hover {
    background: rgba(139, 0, 0, 0.6);
    transform: translateY(-2px);
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px solid #8B0000;
}

header h1 {
    font-size: 3em;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    color: #aaa;
    font-size: 1.2em;
    font-style: italic;
}

.status-banner {
    text-align: center;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.status-banner.online {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
}

.status-banner.offline {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid #8B0000;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 5px;
}

.stat-label {
    color: #aaa;
    font-size: 0.9em;
}

.guilds-section {
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid #8B0000;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.guilds-section h2 {
    color: #ff4444;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.guilds-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.guild-card {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: border-color 0.3s;
}

.guild-card:hover {
    border-color: #8B0000;
}

.guild-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.guild-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.guild-info {
    flex: 1;
}

.guild-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.guild-members {
    color: #888;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    color: #888;
    padding: 20px;
}

footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #8B0000;
}

footer .small {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Estilos para subbots */
.subbots-section {
    margin-top: 40px;
    background: linear-gradient(135deg, #1a0000 0%, #2d0a0a 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #8B0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.subbots-section h2 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.section-description {
    text-align: center;
    color: #999;
    margin-bottom: 25px;
    font-size: 14px;
}

.subbot-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.subbot-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8B0000;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.subbot-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
}

.subbot-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #8B0000 0%, #ff0000 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.subbot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.6);
}

.subbot-button:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.5;
}

.subbots-stats {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: #8B0000;
    font-weight: bold;
}

.subbots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.subbot-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #8B0000;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.subbot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.5);
    border-color: #ff0000;
}

.subbot-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.subbot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #8B0000;
}

.subbot-info h3 {
    color: #8B0000;
    margin: 0;
    font-size: 18px;
}

.subbot-info p {
    color: #999;
    margin: 5px 0 0 0;
    font-size: 12px;
}

.subbot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.subbot-stat {
    text-align: center;
    padding: 8px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 5px;
}

.subbot-stat-value {
    display: block;
    color: #8B0000;
    font-weight: bold;
    font-size: 16px;
}

.subbot-stat-label {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 3px;
}

.disconnect-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #660000 0%, #330000 100%);
    border: 1px solid #8B0000;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

.disconnect-button:hover {
    background: linear-gradient(135deg, #8B0000 0%, #660000 100%);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

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