/* ==================== ESTILOS GENERALES ==================== */
.metamask-staking-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* ==================== BOTONES PRINCIPALES ==================== */
.ms-btn {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.ms-btn:hover {
    background: linear-gradient(45deg, #43A047, #5E9C61);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ms-btn-switch {
    background: linear-gradient(45deg, #2196F3, #42A5F5);
}

.ms-btn-switch:hover {
    background: linear-gradient(45deg, #1E88E5, #379BE1);
}

/* ==================== MENSAJES DE ESTADO ==================== */
.ms-status {
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid transparent;
}

.ms-status.success {
    background-color: #C8E6C9;
    color: #2E7D32;
    border-color: #A5D6A7;
}

.ms-status.error {
    background-color: #FFCDD2;
    color: #C62828;
    border-color: #EF9A9A;
}

/* ==================== TABLA DE STAKINGS ==================== */
.staking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 15px rgba(0,0,0,0.1);
}

.staking-table th,
.staking-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.staking-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.staking-table td.status {
    color: #000; 
    font-weight: 500;
}

.staking-table tr:hover {
    background-color: #fafafa;
}

.amount {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.rewards {
    color: #27ae60;
    font-size: 13px;
    font-weight: 500;
}

.claim-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.claim-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Opcional: si quieres mantener colores en estados específicos */
.status .ready { color: #27ae60; }
.status .completed { color: #3498db; }

/* ==================== ESTADOS ESPECIALES ==================== */
.loading-status {
    padding: 20px;
    text-align: center;
    color: #FFFFFF;
    font-style: italic;
}

.error-status {
    padding: 20px;
    background: #fff5f5;
    color: #ff4444;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #ffcccc;
}

/* ==================== DETALLES DE INVERSIONES ==================== */
.staking-details .label {
    font-weight: 600;
    color: #4a5568;
    display: inline-block;
    min-width: 90px;
    margin-right: 10px;
}

.status .completed {
    color: #7f8c8d;
    font-style: italic;
}

.status .time-remaining {
    color: #e67e22;
    font-weight: 500;
}

.investment-id {
    font-weight: 600;
    color: #2c3e50;
}

/* ==================== RESPONSIVE PARA MÓVILES ==================== */
@media (max-width: 768px) {
    .staking-table {
        display: block;
        border: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .staking-table thead {
        display: none;
    }

    .staking-table tbody,
    .staking-table tr,
    .staking-table td {
        display: block;
        width: 100%;
    }

    .staking-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .staking-table td {
        padding: 12px 10px 12px 50% !important;
        text-align: right;
        position: relative;
        min-height: 45px;
        border-bottom: 1px solid #f0f0f0;
    }

    .staking-table td:last-child {
        border-bottom: none;
    }

    .staking-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        text-align: left;
        font-weight: 600;
        color: #2c3e50;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
    }

    .staking-table td.actions::before {
        display: none;
    }

    /* Ajustes específicos para columnas */
    .staking-details {
        text-align: right;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .status {
        padding-right: 5px;
    }

    .actions {
        padding: 15px 10px !important;
        text-align: center !important;
        border-top: 1px solid #eee !important;
    }

    .actions .claim-button {
        width: 100%;
        max-width: none;
        padding: 12px;
        margin: 0;
    }
}

/* ==================== ERRORES Y REDES ==================== */
.switch-network-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.switch-network-btn:hover {
    background: #1976D2;
}

/* Estilos para los estados */
.error-status {
    color: #ff4444;
    padding: 15px;
    background: #ffeeee;
    border-radius: 5px;
    text-align: center;
}

.no-stakes {
    color: #666;
    padding: 15px;
    text-align: center;
}

.canceled {
    color: #ff4444;
    font-weight: bold;
}

.completed {
    color: #00C851;
    font-weight: bold;
}

.ready {
    color: #007bff;
}