/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #023722 0%, #035c3a 100%);
    min-height: 100vh;
    color: #2d3748;
    overflow-x: hidden;
}

/* Container principal */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
    background: linear-gradient(135deg, #023722, #035c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .logo {
    font-weight: 900;
    background: linear-gradient(135deg, #023722 0%, #035c3a 50%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

/* Layout principal */
.main-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #a7f3d0);
}

.sidebar .logo-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.sidebar .logo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #023722 0%, #035c3a 50%, #047857 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 8px 32px rgba(2, 55, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar .logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 25px 25px 0;
    margin: 0 1rem 0 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #023722, #035c3a);
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar nav ul li a:hover::before {
    width: 100%;
}

.sidebar nav ul li a:hover {
    color: white;
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(2, 55, 34, 0.3);
}

.sidebar nav ul li a.active {
    background: linear-gradient(135deg, #023722, #035c3a);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 55, 34, 0.4);
    transform: translateX(10px);
}

.sidebar nav ul li a.active::before {
    width: 100%;
}

.sidebar nav ul li a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    background: transparent;
    padding: 2rem;
    overflow-y: auto;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #a7f3d0);
}

.content-card h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #023722, #035c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards do Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #a7f3d0);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #023722, #035c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.card p {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

/* Formulários */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #023722;
    box-shadow: 0 0 0 4px rgba(2, 55, 34, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Botões */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #023722, #035c3a);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 55, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 55, 34, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.table th,
.table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.table th {
    background: linear-gradient(135deg, #023722, #035c3a);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: rgba(2, 55, 34, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.badge {
    padding: 0.375rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #22543d;
}

.badge-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #742a2a;
}

.badge-warning {
    background: linear-gradient(135deg, #fef5e7, #fbd38d);
    color: #744210;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #023722 0%, #035c3a 100%);
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #a7f3d0);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #023722, #035c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card .logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #023722 0%, #035c3a 50%, #047857 100%);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 8px 32px rgba(2, 55, 34, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card .logo-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

/* Alertas */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

/* Alertas na página de login */
.login-container .alert {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.alert-success {
    background: rgba(198, 246, 213, 0.9);
    color: #22543d;
    border-left-color: #48bb78;
}

.alert-danger {
    background: rgba(254, 215, 215, 0.9);
    color: #742a2a;
    border-left-color: #f56565;
}

.alert-warning {
    background: rgba(254, 245, 231, 0.9);
    color: #744210;
    border-left-color: #ed8936;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 1200px;
    width: 98%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #a7f3d0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

.modal-header h3 {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #a0aec0;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(2, 55, 34, 0.1);
    color: #023722;
}

/* Upload de arquivos */
.file-upload {
    border: 2px dashed rgba(2, 55, 34, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.file-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(2, 55, 34, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-upload:hover::before {
    opacity: 1;
}

.file-upload:hover {
    border-color: #023722;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 55, 34, 0.2);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    cursor: pointer;
    color: #023722;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.file-upload label span {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.file-upload label small {
    color: #718096;
    font-weight: 500;
}

/* Filtros e busca */
.filters-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    background: linear-gradient(135deg, #023722, #035c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state p {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .sidebar .logo-circle {
        width: 150px;
        height: 150px;
    }
    
    .sidebar .logo-circle img {
        width: 120px !important;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: row;
        position: relative;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding: 2rem 0;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(5px);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    .menu-toggle .hamburger {
        width: 20px;
        height: 16px;
        position: relative;
        transform: rotate(0deg);
        transition: 0.5s ease-in-out;
    }
    
    .menu-toggle .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #023722;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }
    
    .menu-toggle .hamburger span:nth-child(1) {
        top: 0px;
    }
    
    .menu-toggle .hamburger span:nth-child(2) {
        top: 7px;
    }
    
    .menu-toggle .hamburger span:nth-child(3) {
        top: 14px;
    }
    
    .menu-toggle.active .hamburger span:nth-child(1) {
        top: 7px;
        transform: rotate(135deg);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        top: 7px;
        transform: rotate(-135deg);
    }
    
    .sidebar .logo-section {
        margin-bottom: 2rem;
        padding: 0 1.5rem;
    }
    
    .sidebar .logo-circle {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }
    
    .sidebar .logo-circle img {
        width: 90px !important;
    }
    
    .sidebar nav ul {
        list-style: none;
        padding: 0;
    }
    
    .sidebar nav ul li {
        margin-bottom: 0.5rem;
    }
    
    .sidebar nav ul li a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #4a5568;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 25px 25px 0;
        margin: 0 1rem 0 0;
        font-weight: 500;
        position: relative;
        overflow: hidden;
    }
    
    .main-content {
        padding: 1rem;
        margin-left: 0;
        width: 100%;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 2rem;
    }
    
    .table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.25rem;
    }
    
    .header .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .content-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding-bottom: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        min-height: 100vh;
    }
    
    .header {
        padding: 0.75rem;
        padding-left: 4rem;
    }
    
    .header h1 {
        font-size: 1.1rem;
    }
    
    .header .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .sidebar {
        width: 260px;
        left: -260px;
        padding: 1.5rem 0;
    }
    
    .sidebar .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .sidebar .logo-circle img {
        width: 70px !important;
    }
    
    .sidebar nav ul {
        gap: 0.25rem;
    }
    
    .sidebar nav ul li a {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .content-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .content-card h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .card h3 {
        font-size: 1.75rem;
    }
    
    .card p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .table-container {
        border-radius: 8px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .login-card h2 {
        font-size: 1.5rem;
    }
    
    .login-card .logo-circle {
        width: 150px;
        height: 150px;
    }
    
    .login-card .logo-circle img {
        width: 120px !important;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(2, 55, 34, 0.1);
    border-top: 3px solid #023722;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ícones */
.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.sidebar nav ul li a .icon {
    filter: none;
}

.icon-home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
}

.icon-plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 4v16m8-8H4'/%3E%3C/svg%3E");
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
}

.icon-arrow-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #023722, #035c3a);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #012a1a, #047857);
}

/* Estilos para badges e ícones */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-success {
    color: #fff;
    background-color: #023722;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-warning {
    color: #fff;
    background-color: #ffc107;
}

.icon-eye::before {
    content: "👁";
}

.icon-plus::before {
    content: "+";
}

/* Estilos para modal de dependentes */
.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: rgba(2, 55, 34, 0.05);
} 

/* Estilos específicos para tabelas em modais */
.modal-content .table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.modal-content .table {
    min-width: 1000px;
    width: 100%;
}

.modal-content .table th,
.modal-content .table td {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

/* Para telas menores, permitir quebra de linha */
@media (max-width: 768px) {
    .modal-content .table {
        min-width: auto;
    }
    
    .modal-content .table th,
    .modal-content .table td {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Form row para campos lado a lado */
.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Spinner para loading */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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