/* style.css - Serviços Rápidos SP */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    color: #333;
    font-size: 2.4em;
    margin-bottom: 10px;
}

h2 {
    color: #444;
    margin-bottom: 20px;
}

/* Botões de switch / escolha de perfil */
.switch-role {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.role-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-decoration: none;
    display: inline-block;
}

.btn-client {
    background: #4CAF50;
    color: white;
}

.btn-pro {
    background: #FF5722;
    color: white;
}

.role-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.role-btn:active {
    transform: translateY(0);
}

/* Formulários (cadastro, login, postar pedido) */
.client-form {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    max-width: 550px;
    margin: 0 auto 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: bold;
    color: #444;
    margin-bottom: 8px;
    font-size: 1.05em;
}

input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(76,175,80,0.35);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76,175,80,0.5);
}

/* Cards de pedidos */
.orders-list {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    max-height: 70vh;
    overflow-y: auto;
}

.order-card {
    background: #f9fbff;
    border-left: 6px solid #4CAF50;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.order-card.new,
.order-card em_destaque {  /* para destaque pago */
    border-left-color: #FF5722;
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
    animation: pulse 2s infinite;
}

.order-card.aceito {
    border-left-color: #4CAF50;
    background: #e8f5e9;
}

.order-card.rejeitado {
    border-left-color: #f44336;
    background: #ffebee;
    opacity: 0.75;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,87,34,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255,87,34,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,87,34,0); }
}

.order-header {
    font-size: 1.4em;
    font-weight: bold;
    color: #222;
    margin-bottom: 12px;
}

.order-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 140px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-contact {
    background: #2196F3;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    body { padding: 12px; }
    h1 { font-size: 2em; }
    .switch-role { flex-direction: column; }
    .role-btn { width: 100%; }
    .order-actions { flex-direction: column; }
    .btn-action { width: 100%; }
}

/* Scrollbar customizada */
.orders-list::-webkit-scrollbar {
    width: 8px;
}

.orders-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd1;
}