/* ===================================
   LAYOUT MODERNO - SGAUG
   Bootstrap + Custom Styles
   =================================== */

:root {
    --primary-color: #663366;
    --primary-dark: #5a2d5a;
    --primary-light: #7a3f7a;
    --secondary-color: #CF9FCF;
    --accent-color: #ffcc33;
    --text-color: #333333;
    --bg-color: #f8f9fa;
    --sidebar-width: 250px;
    --navbar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 100%;
    overflow-x: hidden;
}

/* ===================================
   NAVBAR TOP
   =================================== */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    min-height: var(--navbar-height);
}

.navbar-custom .navbar-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 5px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-custom .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.user-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 1.2rem;
}

/* ===================================
   SIDEBAR MENU
   =================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-menu > li {
    margin: 4px 8px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.sidebar-menu > li > a i {
    margin-right: 12px;
    width: 22px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover {
    background: linear-gradient(90deg, rgba(102, 51, 102, 0.08) 0%, rgba(102, 51, 102, 0.03) 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateX(3px);
}

.sidebar-menu > li > a:hover i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.sidebar-menu > li.active > a {
    background: linear-gradient(90deg, rgba(102, 51, 102, 0.15) 0%, rgba(102, 51, 102, 0.08) 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 51, 102, 0.15);
}

.sidebar-menu > li.active > a i {
    color: var(--primary-dark);
}

/* Destaque especial para menu aberto */
.sidebar-menu > li.has-sub.open {
    background: linear-gradient(135deg, rgba(102, 51, 102, 0.05) 0%, rgba(207, 159, 207, 0.08) 100%);
    box-shadow: 0 2px 12px rgba(102, 51, 102, 0.1);
}

.sidebar-menu > li.has-sub.open > a {
    background: linear-gradient(90deg, rgba(102, 51, 102, 0.12) 0%, rgba(102, 51, 102, 0.06) 100%);
    border-left-color: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.sidebar-menu > li.has-sub.open > a i {
    color: var(--primary-dark);
    transform: scale(1.15);
}

/* Submenu melhorado */
.sidebar-menu .submenu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 0 0 8px 8px;
}

.sidebar-menu li.has-sub.open > .submenu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-menu .submenu li {
    margin: 2px 8px;
}

.sidebar-menu .submenu li a {
    display: flex;
    align-items: center;
    padding: 11px 16px 11px 45px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.sidebar-menu .submenu li a:before {
    content: "";
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.sidebar-menu .submenu li a:after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.sidebar-menu .submenu li a:hover {
    background: linear-gradient(90deg, rgba(102, 51, 102, 0.1) 0%, rgba(207, 159, 207, 0.15) 100%);
    color: var(--primary-dark);
    padding-left: 48px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(102, 51, 102, 0.1);
}

.sidebar-menu .submenu li a:hover:before {
    background: var(--primary-color);
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px rgba(102, 51, 102, 0.5);
}

.sidebar-menu .submenu li a:hover:after {
    height: 100%;
}

.sidebar-menu .submenu li.active a {
    background: linear-gradient(90deg, rgba(102, 51, 102, 0.12) 0%, rgba(207, 159, 207, 0.18) 100%);
    color: var(--primary-dark);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu .submenu li.active a:before {
    background: var(--primary-color);
    width: 8px;
    height: 8px;
}

/* Seta indicadora de menu expandível */
.sidebar-menu > li > a .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.sidebar-menu > li.open > a .arrow {
    transform: rotate(180deg);
    color: var(--primary-dark);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 30px;
    min-height: calc(100vh - var(--navbar-height));
    transition: margin-left 0.3s ease;
}

.content-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.page-header p {
    color: #6c757d;
    margin: 10px 0 0 0;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 51, 102, 0.2);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 10px rgba(102, 51, 102, 0.3);
    transform: translateY(-2px);
}

.btn-navigate {
    color: #663366;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-navigate:hover {
    background-color: rgba(102, 51, 102, 0.1);
    color: #5a2d5a;
}

.btn-secondary-custom {
    padding: 8px 20px;
    border-radius: 5px;
    background: #6c757d;
    color: #ffffff;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ===================================
   FORM STYLES
   =================================== */
.form-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 25px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    color: #663366;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.nav-buttons {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons a {
    color: #663366;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-buttons a:hover {
    background: #663366;
    color: white;
}

.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px 12px;
}

.form-control:focus, .form-select:focus {
    border-color: #663366;
    box-shadow: 0 0 0 0.2rem rgba(102, 51, 102, 0.25);
}

.btn-primary {
    background-color: #663366;
    border-color: #663366;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #552d55;
    border-color: #552d55;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===================================
   JQUERY UI CUSTOMIZATIONS
   =================================== */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
}

.ui-menu-item {
    padding: 5px;
    cursor: pointer;
}

.ui-menu-item:hover {
    background-color: #f0f0f0;
}

.ui-state-active {
    background-color: #0078d4 !important;
    color: black !important;
}

.ui-datepicker {
    z-index: 1001 !important;
    font-size: 12px;
}

.ui-datepicker .ui-datepicker-header {
    background: #663366;
    color: white;
}

.ui-datepicker .ui-datepicker-title {
    color: white;
}

/* ===================================
   FORMS
   =================================== */
.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 51, 102, 0.15);
}

/* ===================================
   CARDS ESPECIAIS
   =================================== */
.novidades-section {
    padding: 20px 0;
}

.novidade-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.novidade-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.novidade-header {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.novidade-header i {
    color: var(--secondary-color);
}

.novidade-image {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.novidade-author {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 15px;
    font-style: italic;
}

/* ===================================
   ANIVERSARIANTES WIDGET
   =================================== */
.widget-aniversariantes {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.widget-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd84d 100%);
    color: var(--primary-dark);
    text-align: center;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.widget-aniversariantes img {
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.aniversariante-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.aniversariante-item:last-child {
    border-bottom: none;
}

/* ===================================
   TOGGLE SIDEBAR (Mobile)
   =================================== */
.sidebar-toggle {
    display: none;
    position: fixed;
    left: 10px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .novidade-image {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .modern-table {
        font-size: 0.8rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 8px 4px;
    }
    
    /* Query execution responsive */
    .query-container {
        flex-direction: column;
    }
    
    .tables-panel {
        width: 100%;
        min-width: auto;
    }
    
    .tables-list {
        height: 200px;
    }
    
    /* Configuration responsive */
    .config-table {
        display: block;
    }
    
    .config-table tr {
        display: block;
        margin-bottom: 15px;
    }
    
    .config-table td {
        display: block;
        width: 100% !important;
        padding: 5px 0;
    }
    
    .config-table td:first-child {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .config-input-small {
        width: 100%;
    }
    
    .popup-content {
        width: 95%;
        max-height: 90%;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
    
    .navbar-custom .user-info {
        font-size: 0.85rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* ===================================
   QUERY EXECUTION PAGE
   =================================== */
.query-container {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.query-panel {
    flex: 2;
}

.tables-panel {
    flex: 1;
    min-width: 250px;
}

.tables-list {
    height: 250px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.table-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.table-item:hover {
    background-color: rgba(102, 51, 102, 0.1);
    color: var(--primary-dark);
    font-weight: 500;
}

.table-item:last-child {
    border-bottom: none;
}

/* Popup Modal */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 18px;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-close {
    cursor: pointer;
    font-size: 24px;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
    padding: 0 5px;
}

.popup-close:hover {
    opacity: 1;
}

.popup-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.field-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

.field-item:hover {
    background-color: #f8f9fa;
}

.field-item:last-child {
    border-bottom: none;
}

/* Configuration Page */
.config-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.config-table td {
    padding: 12px;
    vertical-align: middle;
}

.config-table td:first-child {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    width: 30%;
}

.config-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.config-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 51, 102, 0.15);
    outline: none;
}

.config-input-small {
    width: 80px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ===================================
   LOADING INDICATOR
   =================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   FILTERS SECTION
   =================================== */
.filters-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.filter-label {
    font-weight: 600;
    color: #663366;
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.filter-row {
    margin-bottom: 15px;
}

/* ===================================
   TABLE STYLES
   =================================== */
.table-responsive {
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    background: #ffffff;
}

.modern-table {
    width: 100%;
    margin-bottom: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, #663366 0%, #5a2d5a 100%);
    color: #ffffff;
}

.modern-table thead th {
    padding: 12px 10px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
    border: none;
}

.modern-table tbody td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.sort-link {
    color: #ffffff;
    text-decoration: none;
    margin: 0 2px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sort-link:hover {
    opacity: 1;
}

.sort-link img {
    height: 12px;
    width: 12px;
}

.gridview-modern {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.gridview-modern thead {
    background: linear-gradient(135deg, #663366 0%, #5a2d5a 100%);
    color: #ffffff;
}

.gridview-modern thead th {
    padding: 12px;
    font-weight: 600;
    text-align: center;
}

.gridview-modern tbody td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.gridview-modern tbody tr:hover {
    background-color: #f8f9fa;
}

.alert-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.modal-header-custom {
    background: linear-gradient(135deg, #663366 0%, #5a2d5a 100%);
    color: #ffffff;
}

.modal-title {
    font-weight: 600;
}

.adotante-link {
    color: #663366;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.adotante-link:hover {
    color: #7a3f7a;
    text-decoration: underline;
}

.btn-remove {
    color: #dc3545;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    color: #c82333;
    transform: scale(1.2);
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.gato-link {
    color: #663366;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gato-link:hover {
    color: #7a3f7a;
    text-decoration: underline;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lnkButton {
    color: #663366;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lnkButton:hover {
    background-color: rgba(102, 51, 102, 0.1);
    color: #5a2d5a;
}

.btn-action {
    padding: 8px 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #663366 0%, #5a2d5a 100%);
    color: #ffffff;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 51, 102, 0.2);
}

.btn-action:hover {
    background: linear-gradient(135deg, #5a2d5a 0%, #663366 100%);
    box-shadow: 0 4px 10px rgba(102, 51, 102, 0.3);
    transform: translateY(-2px);
}

/* ===================================
   LOGIN PAGE STYLES
   =================================== */
.login-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.login-page-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundMove 15s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--white, #ffffff);
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
    background: var(--white, #ffffff);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.login-title {
    color: var(--white, #ffffff);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #6b7280;
    font-size: 20px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.icon-user::before {
    content: '👤';
}

.icon-lock::before {
    content: '🔒';
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 14px 16px 14px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.login-card input[type="text"]::placeholder,
.login-card input[type="password"]::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
    background: var(--white, #ffffff);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(122, 63, 122, 0.1);
}

.login-card input[type="text"]:focus + .input-icon,
.login-card input[type="password"]:focus + .input-icon {
    color: var(--primary-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-wrapper label {
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white, #ffffff);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.floating-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: var(--white, #ffffff);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-footer:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.3);
}

.floating-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.floating-footer a:hover {
    color: #93c5fd;
}

/* ===================================
   RESPONSIVE - LOGIN PAGE
   =================================== */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
    }

    .login-card form {
        padding: 30px 24px;
    }

    .login-header {
        padding: 30px 24px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .login-title {
        font-size: 20px;
    }

    .floating-footer {
        bottom: 15px;
        font-size: 12px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .login-page-body {
        padding: 15px;
    }

    .login-card {
        border-radius: 16px;
    }

    .login-card form {
        padding: 24px 20px;
    }

    .login-header {
        padding: 24px 20px;
    }

    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .login-title {
        font-size: 18px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .login-card input[type="text"],
    .login-card input[type="password"] {
        padding: 12px 14px 12px 46px;
        font-size: 14px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }

    .floating-footer {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 20px;
        font-size: 11px;
        padding: 8px 16px;
    }

    .floating-footer:hover {
        transform: translateY(-2px);
    }
}
#ui-datepicker-div{
    z-index: 9999 !important;
}