/* VeriPraes - Custom Styles */
:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --success-color: #d97706;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #6b7280;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --navbar-color: #2d3748;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0" stop-color="%23ffffff" stop-opacity=".05"/><stop offset="1" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><g opacity=".3"><circle cx="150" cy="150" r="80" fill="url(%23a)"/><circle cx="850" cy="250" r="120" fill="url(%23a)"/><circle cx="250" cy="750" r="100" fill="url(%23a)"/><circle cx="750" cy="850" r="60" fill="url(%23a)"/><circle cx="450" cy="100" r="40" fill="url(%23a)"/><circle cx="650" cy="600" r="90" fill="url(%23a)"/></g></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.7;
    pointer-events: none;
}

.login-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(31, 41, 55, 0.25),
        0 10px 20px -5px rgba(31, 41, 55, 0.1),
        0 4px 6px -2px rgba(31, 41, 55, 0.05);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 41, 55, 0.1);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -12px rgba(31, 41, 55, 0.35),
        0 15px 25px -5px rgba(31, 41, 55, 0.15),
        0 8px 10px -6px rgba(31, 41, 55, 0.1);
}

.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-brand i {
    color: var(--dark-color);
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 4px rgba(31, 41, 55, 0.2);
}

.login-brand h2 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(31, 41, 55, 0.1);
}

.login-brand p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Login Form Styles */
.login-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.login-form .form-control:focus {
    border-color: var(--dark-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 41, 55, 0.15);
    background: white;
    transform: translateY(-1px);
}

.login-form .input-group-text {
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    font-size: 1.1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus + .input-group-text,
.login-form .input-group:focus-within .input-group-text {
    border-color: var(--dark-color);
    background: white;
    color: var(--dark-color);
}

.login-form .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, var(--dark-color) 0%, #374151 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(31, 41, 55, 0.3);
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(31, 41, 55, 0.4);
    background: linear-gradient(90deg, #111827 0%, var(--dark-color) 100%);
}

.login-form .form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-credentials {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    border: 1px solid #cbd5e1;
}

.login-credentials small {
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
}

/* Floating animation for login card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.login-card {
    animation: float 8s ease-in-out infinite;
}

.login-card:hover {
    animation-play-state: paused;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: linear-gradient(90deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Statistics Cards */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid #d97706 !important;
}

.border-left-info {
    border-left: 4px solid #6b7280 !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #2d3748;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-color: #1a202c;
}

.btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    border-color: #4a5568;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #2d3748;
}

.btn-success {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border-color: #d97706;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    border-color: #b45309;
}

.btn-info {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    border-color: #6b7280;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    border-color: #4b5563;
}

.btn-warning {
    background: linear-gradient(135deg, #dd6b20 0%, #ed8936 100%);
    border-color: #dd6b20;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #c05621 0%, #dd6b20 100%);
    border-color: #c05621;
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
    border-color: #e53e3e;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
    border-color: #c53030;
}

.btn-outline-primary {
    color: #2d3748;
    border-color: #2d3748;
}

.btn-outline-primary:hover {
    background-color: #2d3748;
    border-color: #2d3748;
    color: white;
}

.btn-outline-secondary {
    color: #4a5568;
    border-color: #4a5568;
}

.btn-outline-secondary:hover {
    background-color: #4a5568;
    border-color: #4a5568;
    color: white;
}

.btn-outline-info {
    color: #6b7280;
    border-color: #6b7280;
}

.btn-outline-info:hover {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

/* Tables */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #e5e7eb;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(45, 55, 72, 0.08);
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 55, 72, 0.25);
}

.input-group-text {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    border-radius: 0.5rem 0 0 0.5rem;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.badge.bg-success {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #dd6b20 0%, #ed8936 100%) !important;
    color: white;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%) !important;
    color: white;
}

.badge.bg-info {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%) !important;
    color: white;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%) !important;
    color: white;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
    color: white;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: #fed7aa;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #e5e7eb;
    color: #374151;
}

/* Navigation */
.nav-link {
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
}

.page-link {
    color: #2d3748;
    border-color: #cbd5e0;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #2d3748;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 55, 72, 0.25);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #2d3748;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.page-item.disabled .page-link {
    color: #a0aec0;
    background-color: #f7fafc;
    border-color: #e2e8f0;
}

.page-item:first-child .page-link {
    border-radius: 0.5rem;
}

.page-item:last-child .page-link {
    border-radius: 0.5rem;
}

/* Timeline for Movimentações */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.timeline-content {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Utilities */
.text-monospace {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Links de Processos */
.text-primary,
a.text-primary {
    color: #2d3748 !important;
}

.text-primary:hover,
a.text-primary:hover {
    color: #1a202c !important;
    text-decoration: underline;
}

/* Links em tabelas */
.table a {
    color: #2d3748;
    font-weight: 500;
    transition: all 0.2s ease;
}

.table a:hover {
    color: #1a202c;
    text-decoration: underline;
}

.shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .card-header .btn,
    .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}
