/**
 * Estilos Customizados - GN9V Soluções
 *
 * Este arquivo pode ser usado para estilos adicionais e customizações
 * Não sobrescrever o style.css principal
 *
 * @package GN9V_Solucoes
 */

/* ==========================================================================
   VARIÁVEIS CSS
   ========================================================================== */

:root {
    --primary-color: #0066cc;
    --primary-color-dark: #004499;
    --secondary-color: #666666;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --transition: 0.3s ease;
}

/* ==========================================================================
   COMPONENTES - CARDS
   ========================================================================== */

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   COMPONENTES - ALERTAS
   ========================================================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ==========================================================================
   COMPONENTES - BADGE
   ========================================================================== */

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: #e0e0e0;
    color: #333;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.badge-success {
    background-color: var(--success-color);
    color: #fff;
}

.badge-warning {
    background-color: var(--warning-color);
    color: #333;
}

.badge-danger {
    background-color: var(--danger-color);
    color: #fff;
}

/* ==========================================================================
   COMPONENTES - TABELAS
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

table thead {
    background-color: #f9f9f9;
    border-bottom: 2px solid #e0e0e0;
}

table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: #333;
}

table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

/* ==========================================================================
   COMPONENTES - FORMULÁRIOS
   ========================================================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.5rem var(--spacing-md);
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   COMPONENTES - LISTAS
   ========================================================================== */

.list-styled {
    list-style: none;
    padding: 0;
}

.list-styled li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.list-styled li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==========================================================================
   COMPONENTES - HERO
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ==========================================================================
   UTILITÁRIOS - DISPLAY
   ========================================================================== */

.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

/* ==========================================================================
   UTILITÁRIOS - FLEXBOX
   ========================================================================== */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.flex-column {
    flex-direction: column !important;
}

.gap-1 { gap: var(--spacing-md) !important; }
.gap-2 { gap: var(--spacing-lg) !important; }
.gap-3 { gap: var(--spacing-xl) !important; }

/* ==========================================================================
   UTILITÁRIOS - TEXTO
   ========================================================================== */

.text-muted {
    color: #999;
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

/* ==========================================================================
   UTILITÁRIOS - BORDERS
   ========================================================================== */

.border {
    border: 1px solid #e0e0e0;
}

.border-top {
    border-top: 1px solid #e0e0e0;
}

.border-bottom {
    border-bottom: 1px solid #e0e0e0;
}

.border-left {
    border-left: 1px solid #e0e0e0;
}

.border-right {
    border-right: 1px solid #e0e0e0;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ==========================================================================
   UTILITÁRIOS - SOMBRAS
   ========================================================================== */

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   UTILITÁRIOS - ROUNDED
   ========================================================================== */

.rounded {
    border-radius: var(--radius-md);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: 9999px;
}

/* ==========================================================================
   UTILITÁRIOS - OVERFLOW
   ========================================================================== */

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: var(--spacing-sm);
    }
}

/* ==========================================================================
   MODO ESCURO (Comentado - Ativar conforme necessário)
   ========================================================================== */

/*
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --text-primary: #e0e0e0;
        --text-secondary: #999;
    }

    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }

    .card {
        background-color: var(--bg-secondary);
        border-color: #444;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    select {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
        border-color: #444;
    }
}
*/
