* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 28px;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #f8f9fa;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: #f8f9fa;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin: 40px auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
    gap: 20px;
}

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

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-left {
        width: 100%;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .card {
        padding: 20px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .action-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}



/* ========================================
   ESTILOS DO FOOTER APENAS
   Adicione este código no final do seu style.css
   NÃO afeta nenhum outro componente do sistema
   ======================================== */

.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    font-size: 14px;
    text-align: center;
    opacity: 0.95;
    margin: 0;
    padding: 0;
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    padding: 0;
}

.footer-icon {
    font-size: 18px;
}

.footer-email {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-email:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 5px 0;
}

/* Responsivo para Mobile - APENAS FOOTER */
@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-developer {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-developer {
        font-size: 12px;
    }
}

/* ======================================== */



/* ========================================
   ESTILOS DO MENU HORIZONTAL CENTRALIZADO
   Adicione este código no final do seu style.css
   ======================================== */

.horizontal-menu {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1200px;
    position: sticky;
    top: 70px;
    z-index: 90;
}

.horizontal-menu-container {
    display: flex;
    justify-content: center; /* CENTRALIZADO */
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Quebra linha se necessário */
}

.horizontal-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.horizontal-menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-3px);
}

.horizontal-menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.horizontal-menu-item.active:hover {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.horizontal-menu-item .menu-icon {
    font-size: 24px;
}

.horizontal-menu-item .menu-text {
    font-size: 12px;
}

/* Tablet */
@media (max-width: 992px) {
    .horizontal-menu-container {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .horizontal-menu-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .horizontal-menu-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .horizontal-menu-container::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .horizontal-menu {
        padding: 10px;
        margin: 10px;
        border-radius: 10px;
    }
    
    .horizontal-menu-item {
        min-width: 80px;
        padding: 10px 15px;
    }
    
    .horizontal-menu-item .menu-icon {
        font-size: 20px;
    }
    
    .horizontal-menu-item .menu-text {
        font-size: 11px;
    }
}

/* ======================================== */