/* ContratoJá Dashboard Styles */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.1);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --muted: #6b7280;
    --border: #e5e7eb;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Body and Layout */
body {
    background-color: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.container-fluid {
    max-width: 1400px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

/* Custom Buttons */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

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

.card-gradient-surface {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Stat Cards */
.stat-card {
    height: 100%;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.stat-icon.success {
    background-color: var(--success-light);
    color: var(--success);
}

.stat-icon.warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

/* Contract Cards */
.contract-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--card-bg);
    transition: all 0.2s ease;
}

.contract-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contract-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contract-card .card-text {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background-color: #f3f4f6;
    color: #374151;
}

.status-review {
    background-color: var(--warning-light);
    color: var(--warning);
}

.status-approved {
    background-color: var(--success-light);
    color: var(--success);
}

.status-signed {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-sent {
    background-color: var(--primary-light);
    color: var(--primary);
}

.status-archived {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Progress Bar */
.progress {
    background-color: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Quick Action Buttons */
.quick-action-btn {
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.alert-warning {
    background-color: var(--warning-light);
    border-left: 4px solid var(--warning);
    color: #92400e;
}

/* Badges */
.bg-outline-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .quick-action-btn {
        height: 100px;
        font-size: 0.9rem;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem !important;
    }
    
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .quick-action-btn {
        height: 80px;
        font-size: 0.8rem;
    }
    
    .quick-action-btn i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}