* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo h2 {
    font-size: 28px;
    font-weight: 700;
}

.logo p {
    font-size: 14px;
    opacity: 0.9;
}

.menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.menu li {
    margin: 5px 0;
}

.menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu li a i {
    width: 20px;
    text-align: center;
}

.menu li a:hover, .menu li.active > a {
    background-color: rgba(255,255,255,0.1);
    border-left-color: #ffd700;
}

.submenu {
    list-style: none;
    padding-left: 45px;
    background-color: rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.has-submenu.active .submenu {
    max-height: 300px;
}

.submenu li a {
    padding: 8px 15px;
    font-size: 14px;
}

.user-info {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 30px;
}

/* Conteúdo principal */
.content {
    flex: 1;
    padding: 30px;
    background-color: #f5f5f5;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.card h2 {
    color: #1b5e20;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group.half {
    flex: 1;
}

/* Botões */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

.btn-danger {
    background-color: #d32f2f;
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f5f5f5;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-pendente {
    background-color: #fff3e0;
    color: #e65100;
}

.status-emitido {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-pago {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* Barra de busca */
.search-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar input {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
}

.search-bar select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    min-width: 150px;
}

/* Ações */
.actions {
    display: flex;
    gap: 10px;
}

.actions a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.actions a:hover {
    background-color: #f0f0f0;
}

.actions a.view { color: #2e7d32; }
.actions a.edit { color: #1976d2; }
.actions a.delete { color: #d32f2f; }
.actions a.download { color: #ff8f00; }

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.alert-error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: #2e7d32;
    margin-bottom: 10px;
    text-align: center;
}

.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.login-box input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-box button:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46,125,50,0.3);
}