/* ==================================================
   GLOBAL STYLES - MODERN DESIGN
   ================================================== */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body, html {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--app-bg) !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--app-text) !important;
}

.page {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.container-fluid,
.row,
article.content {
    height: 100%;
    min-height: 0;
    width: 100%;
}

.container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

article.content {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* Scrollbar moderna */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Sobrescrever cores antigas */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.text-primary {
    color: var(--app-primary) !important;
}

.btn-primary {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

.btn-primary:hover {
    background: var(--app-primary-dark) !important;
    border-color: var(--app-primary-dark) !important;
}

.bg-primary {
    background-color: var(--app-primary) !important;
}

.border-primary {
    border-color: var(--app-primary) !important;
}

.btn-outline-primary {
    color: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    color: #ffffff !important;
}

/* ========================================
   Botão de Adicionar Endereço
   ======================================== */
.btn-add-endereco {
    background: var(--app-primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add-endereco:hover:not(:disabled) {
    background: var(--app-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-add-endereco:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-endereco i {
    font-size: 20px;
}

/* ========================================
   Botão de Buscar CEP
   ======================================== */
.btn-buscar-cep {
    background: var(--app-primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-buscar-cep:hover:not(:disabled) {
    background: var(--app-primary-dark);
    transform: scale(1.05);
}

.btn-buscar-cep:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-buscar-cep i {
    font-size: 18px;
}

/* Animação de spinning para loading */
@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spinning 1s linear infinite;
}

/* ========================================
   Form de Endereço no Modal
   ======================================== */
.form-endereco {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-endereco .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-endereco label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.form-endereco input,
.form-endereco select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-endereco input:focus,
.form-endereco select:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-endereco input:disabled,
.form-endereco select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Alerta de aviso */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

