* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f4f7fc 0%, #e8f2ff 100%);
    min-height: 100vh;
    color: #33475b;
}

/* === PAINEL PRINCIPAL === */
.painel {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    padding: 40px;
    max-width: 1200px;
    min-height: 600px;
}

.senha-area {
    flex: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.senha-titulo {
    font-size: 3em;
    color: #33475b;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.senha-numero {
    font-size: 12em;
    color: #007bff;
    font-weight: bold;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.senha-guiche {
    font-size: 5em;
    color: #5a6e8c;
    font-weight: 500;
    margin-top: 30px;
}

/* === HISTÓRICO === */
.historico-area {
    flex: 1;
    padding-left: 40px;
    border-left: 2px solid #e9ecef;
}

.historico-titulo {
    font-size: 1.8em;
    color: #33475b;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.historico-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #495057;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.historico-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

/* === LOGIN === */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-titulo {
    font-size: 2.5em;
    color: #33475b;
    margin-bottom: 30px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

/* === DASHBOARD === */
.dashboard-container {
    max-width: 500px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.dashboard-titulo {
    font-size: 2.2em;
    color: #33475b;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-group-main {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-main {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    border: none;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    line-height: 1.1;
}

.btn-normal {
    background: #007bff;
    color: white;
}

.btn-normal:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-priority {
    background: #ffc107;
    color: #212529;
}

.btn-priority:hover {
    background: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-finish {
    background: #28a745;
    color: white;
}

.btn-finish:hover {
    background: #1e7e34;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-main:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-main.disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === BOTÕES GERAIS === */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: #007bff;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    font-size: 0.9em;
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-logout:hover {
    background: #c82333;
}

/* === ENGRENAGEM DE CONFIGURAÇÃO === */
.config-gear {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    color: #6c757d;
}

.config-gear:hover {
    opacity: 1;
    color: #495057;
}

/* === ALERTAS === */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    color: #33475b;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .painel {
        flex-direction: column;
        margin: 20px;
        padding: 30px;
    }
    
    .senha-area {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .historico-area {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #e9ecef;
        padding-top: 30px;
    }
    
    .btn-group-main {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-main {
        width: 100%;
        height: 80px;
    }
    
    .senha-numero {
        font-size: 8em;
    }
    
    .senha-guiche {
        font-size: 3em;
    }
}

/* === LOG DE CHAMADAS === */
.log-container {
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.log-titulo {
    font-size: 1.3em;
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.log-item.finalizada {
    border-left-color: #28a745;
    background: #f8fff9;
}

.log-info {
    display: flex;
    flex-direction: column;
}

.log-senha {
    font-weight: bold;
    color: #495057;
    font-size: 1.1em;
}

.log-tempo {
    font-size: 0.85em;
    color: #6c757d;
}

.log-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.log-status.chamada {
    background: #e3f2fd;
    color: #1976d2;
}

.log-status.finalizada {
    background: #e8f5e8;
    color: #2e7d32;
}

.btn-finish-call {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.btn-finish-call:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-finish-call:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-finish-call.disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none;
}
