/**
 * Componentes Customizados - Sistema de Orçamento de Vidros
 */

/* Cards de Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tabelas */
.table-responsive-custom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem;
}

.table-custom tbody tr {
    transition: background-color 0.2s;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
}

/* Botões Customizados */
.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-action-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges de Status */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-status.active {
    background-color: var(--success-color);
    color: white;
}

.badge-status.inactive {
    background-color: var(--text-light);
    color: white;
}

.badge-status.pending {
    background-color: var(--warning-color);
    color: white;
}

/* Formulários */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: var(--border-color);
}

/* Alertas Customizados */
.alert-custom {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
}

.alert-custom .alert-heading {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modais Customizados */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Paginação */
.pagination-custom .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination-custom .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb-custom {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--text-light);
}

/* Sidebar (se necessário) */
.sidebar {
    background-color: var(--white);
    min-height: calc(100vh - 60px);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive-custom {
        font-size: 0.875rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
}

