/* STO Plugin Frontend Styles */

.plst-sto-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 20px 0;
}

.plst-sto-form-group {
    margin-bottom: 20px;
}

.plst-sto-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.plst-sto-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.plst-sto-form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.plst-sto-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.plst-sto-form-row .plst-sto-form-group {
    margin-bottom: 0;
}

.plst-sto-mis-ordenes {
    margin: 20px 0;
}

.plst-sto-ordenes-table {
    margin-top: 20px;
}

.plst-sto-ordenes-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.plst-sto-ordenes-table td {
    padding: 12px;
}

.plst-sto-ordenes-table a.button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Estado Badges */
.plst-sto-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.plst-sto-estado-pendiente {
    background-color: #f39c12;
    color: white;
}

.plst-sto-estado-en-proceso {
    background-color: #3498db;
    color: white;
}

.plst-sto-estado-completada {
    background-color: #27ae60;
    color: white;
}

.plst-sto-estado-cancelada {
    background-color: #e74c3c;
    color: white;
}

/* Registrar Cliente */
.plst-sto-registrar-cliente {
    max-width: 600px;
    margin: 20px 0;
}

.plst-sto-registrar-cliente h2 {
    margin-top: 0;
    color: #333;
}

/* Mi Perfil */
.plst-sto-mi-perfil {
    margin: 20px 0;
}

.plst-sto-perfil-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
}

.plst-sto-perfil-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.plst-sto-perfil-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.plst-sto-perfil-header p {
    margin: 8px 0 0 0;
    color: #666;
}

.plst-sto-perfil-roles {
    margin-bottom: 30px;
}

.plst-sto-perfil-roles h4,
.plst-sto-perfil-stats h4 {
    margin-top: 0;
    color: #333;
}

.plst-sto-perfil-roles ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.plst-sto-perfil-roles li {
    padding: 8px 0;
    color: #666;
}

.plst-sto-perfil-stats {
    margin-bottom: 30px;
}

.plst-sto-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.plst-sto-stat {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.plst-sto-stat strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.plst-sto-stat span {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
}

.plst-sto-perfil-actions {
    text-align: center;
}

.plst-sto-perfil-actions a {
    display: inline-block;
}

/* Success/Error Messages */
.plst-sto-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.plst-sto-message.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.plst-sto-message.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .plst-sto-form-row {
        grid-template-columns: 1fr;
    }

    .plst-sto-stats-row {
        grid-template-columns: 1fr;
    }

    .plst-sto-ordenes-table {
        font-size: 12px;
    }

    .plst-sto-ordenes-table td {
        padding: 8px;
    }

    .plst-sto-perfil-card {
        padding: 20px;
    }
}
