/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-image: url('/roothosting.jpg');
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 18px; /* Tamaño de fuente base aumentado */
}

/* Contenedor del dashboard */
.dashboard-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Encabezado */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #333;
}

.dashboard-header button {
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dashboard-header button:hover {
    background: #2575fc;
}

/* Lista de VPS */
.vps-list ul {
    list-style-type: none;
    padding: 0;
}

.vps-item {
    background: white;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vps-info {
    display: flex;
    flex-direction: column;
}

.vps-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.vps-id {
    color: #777;
    font-size: 0.9rem;
}

.vps-actions button {
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
}

.btn-start {
    background: #28a745;
    color: white;
}

.btn-start:hover {
    background: #218838;
}

.btn-stop {
    background: #dc3545;
    color: white;
}

.btn-stop:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vps-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .vps-actions {
        margin-top: 1rem;
    }

    .vps-actions button {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Estilos específicos para la página de login */
.login-container {
    background: rgba(255, 255, 255, 1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.login-box h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #6a11cb;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #2575fc;
}

/* Estilos para mensajes de error */
.error-message {
    color: #dc3545;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design para el login */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }

    .input-group input {
        padding: 0.5rem;
    }

    button[type="submit"] {
        padding: 0.5rem;
    }
}

/* Estilos para la página de gestión de VPS */
.vps-details {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vps-details p {
    margin: 0.5rem 0;
}

.vps-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-start, .btn-stop {
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-start {
    background: #28a745;
    color: white;
}

.btn-start:hover {
    background: #218838;
}

.btn-stop {
    background: #dc3545;
    color: white;
}

.btn-stop:hover {
    background: #c82333;
}

/* Estilos para las métricas en tiempo real */
.vps-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.vps-details strong {
    color: #333;
}

.vps-details span {
    color: #555;
}

/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-image: url('/roothosting.jpg');
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor del dashboard */
.dashboard-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    margin: 2rem;
}

/* Encabezado */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.dashboard-header button {
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dashboard-header button:hover {
    background: #2575fc;
}

/* Detalles de la VPS */
.vps-details {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vps-details p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.vps-details strong {
    color: #333;
}

.vps-details span {
    color: #555;
}

/* Gráficos o métricas */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.metric-card p {
    margin: 0;
    font-size: 1.5rem;
    color: #6a11cb;
    font-weight: bold;
}

/* Acciones de la VPS */
.vps-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.vps-actions button {
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    color: white;
}

.btn-start {
    background: #28a745;
}

.btn-start:hover {
    background: #218838;
}

.btn-stop {
    background: #dc3545;
}

.btn-stop:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .vps-details p {
        font-size: 1rem;
    }

    .metrics-container {
        grid-template-columns: 1fr;
    }

    .vps-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vps-actions button {
        width: 100%;
    }
}

/* Estilos específicos para la página de gestión de VPS */
.vps-details {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.vps-details p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.vps-details strong {
    color: #333;
}

.vps-details span {
    color: #555;
}

/* Gráficos o métricas */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.metric-card p {
    margin: 0;
    font-size: 1.5rem;
    color: #6a11cb;
    font-weight: bold;
}

/* Acciones de la VPS */
.vps-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.vps-actions button {
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    color: rgb(172, 52, 52);
}

.btn-start {
    background: #28a745;
}

.btn-start:hover {
    background: #218838;
}

.btn-stop {
    background: #dc3545;
}

.btn-stop:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }

    .vps-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vps-actions button {
        width: 100%;
    }
}

.metric-card canvas {
    width: 100% !important;
    height: 200px !important; /* Altura fija para los gráficos */
}


/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}