// ============================================================================
// assets/css/style.css - Estilos CSS Principal
// ============================================================================
/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-1px);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.page-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #1e3a8a;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.button-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.button-outline {
    background: transparent;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

.button-outline:hover {
    background: #1e3a8a;
    color: white;
}

.button-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button-full {
    width: 100%;
}

/* Stats Section */
.stats-section {
    margin: 3rem 0;
    text-align: center;
}

.stats-section h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

/* Services Section */
.services-section {
    margin: 4rem 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.auth-card p {
    color: #64748b;
    margin-bottom: 2rem;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

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

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

.success-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Request Cards */
.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.request-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.request-card:hover {
    transform: translateY(-3px);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.request-protocol {
    font-size: 0.875rem;
    color: #1e3a8a;
    font-weight: 700;
}

.request-content {
    padding: 1rem 1.5rem;
}

.request-content h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.category-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.request-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 1.5rem 1.5rem;
}

.request-dates {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Status */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-new { background-color: #dbeafe; color: #1e40af; }
.status-analysis { background-color: #fef3c7; color: #92400e; }
.status-answered { background-color: #d1fae5; color: #065f46; }
.status-appeal { background-color: #fed7d7; color: #c53030; }
.status-appeal-analysis { background-color: #fbb6ce; color: #97266d; }
.status-appeal-answered { background-color: #c6f6d5; color: #2d7d32; }
.status-finished { background-color: #e2e8f0; color: #4a5568; }
.status-cancelled { background-color: #fee2e2; color: #991b1b; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
}

.search-input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.search-result {
    margin-top: 2rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.result-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
}

.result-info p {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.result-info strong {
    color: #1f2937;
}

.result-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.result-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.search-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.help-box h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.help-box ul {
    list-style: none;
    padding: 0;
}

.help-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.help-box li:last-child {
    border-bottom: none;
}

/* Info Sections */
.law-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.law-info h2 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.law-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.law-text h3 {
    color: #1e3a8a;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.law-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.law-text li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.law-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #bae6fd;
}

.highlight-box h4 {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.highlight-box p {
    color: #164e63;
    font-size: 0.9rem;
    margin: 0;
}

/* Info Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-box h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-box li:last-child {
    border-bottom: none;
}

/* Overdue Notice */
.overdue-notice {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid,
    .services-grid,
    .requests-grid {
        grid-template-columns: 1fr;
    }
    
    .law-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .law-highlights {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .highlight-box {
        min-width: 200px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .request-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}