/* =====================================
   Promofy Custom Styles
   ===================================== */

/* Spacing utilities */
.mt-4-5 {
    margin-top: 2rem !important;
}

/* =====================================
   Sidebar / Menu Styles
   ===================================== */

/* Menu background */
.layout-menu.bg-menu-theme,
.menu-inner {
    background-color: #182127 !important;
}

/* App brand area */
.menu .app-brand.demo {
    height: 100px;
    padding: 1rem 1.5rem;
    background-color: #182127;
}

.app-brand-logo img {
    max-width: 140px;
    height: auto;
}

/* Menu item links */
.menu-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.menu-item a:hover {
    color: #fff !important;
}

/* Menu inner shadow */
.menu-inner-shadow {
    background: linear-gradient(#182127 41%, rgba(24, 33, 39, 0.11) 95%, rgba(24, 33, 39, 0)) !important;
    height: 1rem !important;
}

/* Active menu item */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
    color: #00ecaf !important;
    background: linear-gradient(90deg, rgba(0, 198, 144, 0.2) 0%, transparent 100%) !important;
    border-left: 3px solid #00c690;
}

.bg-menu-theme .menu-inner > .menu-item.active:before {
    background: #00c791;
}

/* Menu item hover */
html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item.open > .menu-link,
.layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item.open > .menu-link,
html:not(.layout-menu-collapsed) .bg-menu-theme .menu-inner .menu-item .menu-link:not(.active):hover,
.layout-menu-hover.layout-menu-collapsed .bg-menu-theme .menu-inner .menu-item .menu-link:not(.active):hover {
    background: rgba(0, 198, 144, 0.15);
    color: #00ecaf !important;
}

/* Submenu active item */
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
    background-color: #00c791 !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
}

.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
    background: linear-gradient(90deg, rgba(0, 198, 144, 0.2) 0%, transparent 100%);
}

/* Menu header text */
.menu-header-text {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =====================================
   Layout & Page Background
   ===================================== */

.layout-page {
    background-color: #0c1d24 !important;
}

/* =====================================
   Navbar Styles
   ===================================== */

.layout-navbar {
    background-color: #0e2235 !important;
}

.layout-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

/* Page title in navbar */
.navbar-page-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
}

/* =====================================
   Cards & Content
   ===================================== */

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.card-header,
.card-body,
.card-footer {
    background: transparent;
}

/* Modern glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Stats card */
.stats-card {
    background: linear-gradient(135deg, rgba(0, 198, 144, 0.1) 0%, rgba(0, 198, 144, 0.05) 100%);
    border: 1px solid rgba(0, 198, 144, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 198, 144, 0.15);
}

.stats-card .stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c690 0%, #00a876 100%);
    color: #fff;
    font-size: 1.5rem;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stats-card .stats-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* =====================================
   Buttons
   ===================================== */

.btn-primary {
    background: linear-gradient(135deg, #00c690 0%, #00a876 100%);
    border: none;
    color: #fff;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00d99a 0%, #00b884 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 144, 0.3);
}

.btn-success {
    background-color: #3f7e1d;
    border-color: #2c640e;
}

.btn-success:hover {
    color: #fff !important;
    background-color: #2c640e !important;
    border-color: #3f7e1d !important;
    transform: translateY(-2px) !important;
}

.btn-info {
    color: #FFFFFF;
    background-color: #0F2239;
    border-color: #1B4652;
}

.btn-info:hover {
    color: #fff !important;
    background-color: #1B4652 !important;
    border-color: #0F2239 !important;
    transform: translateY(-2px) !important;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* =====================================
   Tables
   ===================================== */

.table {
    color: rgba(255, 255, 255, 0.8);
}

.table th {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* =====================================
   Forms
   ===================================== */

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #00c690;
    box-shadow: 0 0 0 0.2rem rgba(0, 198, 144, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* =====================================
   Badge & Status
   ===================================== */

.badge-status-active {
    background: rgba(0, 198, 144, 0.2);
    color: #00ecaf;
}

.badge-status-inactive {
    background: rgba(255, 99, 71, 0.2);
    color: #ff6347;
}

.badge-status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* =====================================
   Empty State & Utilities
   ===================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.without-registers-count {
    margin-left: 15px;
    margin-bottom: 2px;
    background-color: rgba(14, 34, 53, 0.05);
}

/* =====================================
   Animations
   ===================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* =====================================
   Scrollbar
   ===================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
