/* Tipografía y fuentes */
@font-face {
    font-family: 'Minefont';
    src: url('https://tradingbudget.top/public/fonts/seven.ttf') format('trueType');
}

body {
    margin: 100px 0px 0px 0px;
    font-family: 'Minefont';
    background-color: #121212;
    color: #ffffff;
}

/* Estilos del Header */
header {
    background-color: #333;
    color: #fff;
    position: fixed;
    position-area: top;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
}

/* Estilos del menú */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 10px;
}

.menu-logo a {
    text-decoration: none;
    color: #fff;
}

.menu-items {
    display: flex;
    list-style: none;
    text-align: right;
    gap: 15px;
}

.menu-items li a {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.menu-items li a:hover {
    background-color: #575757;
}

/* Botón de menú (toggle) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Cards */
.card {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
}

/* Grillas */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Canvas (gráficos) */
canvas {
    background: #000;
    border: 1px solid #333;
}

/* Links */
a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Logout Button */
.logout-btn {
    background-color: #c22c27;
    color: white;
    border: none;
    padding: 2px 6px 6px 6px;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Minefont' !important;
}

.logout-btn:hover {
    background-color: #ff0800;
    transform: scale(1.05);
}

.logout-btn:active {
    background-color: #ac2925;
    transform: scale(1);
}

button {
    width: 100%;
    padding-right: 10px;
    padding-bottom: 10px;
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Minefont' !important;
}

button:hover {
    background-color: #444;
}

/* Footer */
#footer {
    font-family: 'Minefont';
    display: block;
    margin-top: 50px;
}

/* Responsivo */
@media (max-width: 500px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .menu {
        display: -webkit-box;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 60%;
    }

    .menu-logo h1 {
        flex: 1;
        text-align: left;
    }

    .menu-toggle {
        display: flex;
        width: 30%;
        justify-content: center;
        align-items: flex-end;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 40px;
        right: 0;
        width: 100%;
        text-align: center;
        gap: 0px;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-items li {
        margin: 10px 0;
    }
}
