* {
    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 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.container.wide {
    max-width: 700px;
}

h1 {
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #16213e;
    text-align: center;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: normal;
    color: #666;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    margin-top: 10px;
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.links a {
    color: #0f3460;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tabla de informacion */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th,
.info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.info-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    width: 40%;
}

.info-table td {
    color: #666;
}

.info-table tr:hover {
    background: #f8f9fa;
}

/* Lista de personajes */
.character-list {
    margin-top: 30px;
}

.character-list h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f3460;
}

.character-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-info h4 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.character-info p {
    color: #666;
    font-size: 14px;
}

.character-stats {
    text-align: right;
}

.character-stats .level {
    font-size: 24px;
    font-weight: bold;
    color: #0f3460;
}

.character-stats .job {
    font-size: 12px;
    color: #666;
}

/* Navegacion */
.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.nav a {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    background: #0f3460;
    color: white;
}

/* Usuario info en header */
.user-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.user-header .username {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a2e;
}

.user-header .status {
    font-size: 14px;
    color: #27ae60;
}

/* Responsive */
@media (max-width: 500px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav a {
        text-align: center;
    }
}

/* Boton de logout en nav */
.nav a.btn-logout {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
}

.nav a.btn-logout:hover {
    background: linear-gradient(135deg, #a93226, #c0392b);
}

/* Seccion de descarga */
.download-section {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.btn-download {
    display: inline-block;
    background: white;
    color: #27ae60;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-info {
    color: white;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
}

/* Zeny destacado */
.zeny-highlight {
    color: #f39c12;
    font-weight: bold;
}

/* Personaje en linea */
.online-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

/* Seccion de descarga */
.download-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #0f3460;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.05), rgba(22, 33, 62, 0.08));
    border-radius: 10px;
    padding: 25px 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.download-section h3 {
    color: #1a1a2e;
    font-size: 20px;
    margin-bottom: 8px;
}

.download-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}
