/* Sistema de Clientes - Estilos Customizados */
/* Versão 2.0 - Estilos melhorados e modernizados */

/* Reset e configurações globais */
* {
    box-sizing: border-box;
}

body {
    background-image: url(../img/g.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Bitter', serif;
    margin: 0;
    padding: 20px 0;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Jumbotron do formulário */
.jumbotron {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Título principal */
h2 {
    font-family: 'Anton', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 2.5rem;
    letter-spacing: 1px;
}

/* Formulário */
#formulario {
    max-width: 600px;
    margin: 0 auto;
}

/* Labels */
label {
    display: block;
    font-family: 'Bitter', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1.1rem;
}

/* Campos de input */
input[type="text"] {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-family: 'Bitter', serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:invalid {
    border-color: #e74c3c;
}

/* Botão de submit */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Container do botão */
.this {
    text-align: center;
    margin-top: 1.5rem;
}

/* Seção da tabela */
.cliente1 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tabela */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 15px;
    font-size: 0.9rem;
}

.table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Botão de excluir */
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

/* Mensagem de lista vazia */
.text-muted {
    color: #7f8c8d !important;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .jumbotron {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .cliente1 {
        padding: 1.5rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    
    .table tbody td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }
    
    .jumbotron {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn-danger {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jumbotron, .cliente1 {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Melhorias de acessibilidade */
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

input:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
