/* Custom CSS for JusBrasil Clone */

/* Emerald color scheme matching JusBrasil */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom button styles */
.btn-emerald {
    background-color: var(--emerald-600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-emerald:hover {
    background-color: var(--emerald-700);
}

/* Custom card styles */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    border-top-color: var(--emerald-600);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Professional legal styling */
.legal-document {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #374151;
}

.legal-highlight {
    background-color: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Status badges */
.status-active {
    background-color: #dbeafe;
    color: #1e40af;
}

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

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Process timeline */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--emerald-600);
    border-radius: 50%;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    bottom: -1rem;
    width: 2px;
    background-color: #e5e7eb;
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Professional table styling */
.table-professional {
    width: 100%;
    border-collapse: collapse;
}

.table-professional th,
.table-professional td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table-professional th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-success {
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    color: var(--emerald-700);
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}
