/* Custom Theme Color Overrides */
/* This file contains centralized color definitions for easy theme customization */

/* Matter Font Faces */
@font-face {
    font-family: 'Matter';
    src: url('../fonts/Matter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Matter';
    src: url('../fonts/Matter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Matter Font Variables */
    --font-family-matter: 'Matter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --adminuiux-content-font: 'Matter', sans-serif;
    --adminuiux-content-font-weight: 400;
    --adminuiux-title-font: 'Matter', sans-serif;
    --adminuiux-title-font-weight: 500;

    /* Revaz Corp Color Palette */
    /* Primary Colors */
    --theme-primary: #1a5490;              /* Primary Blue (Dark) - Main brand blue */
    --theme-primary-light: #2a7cc7;        /* Primary Blue (Light) - Lighter brand blue */
    --theme-orange: #fa8200;               /* Primary Orange - Brand orange for accents, CTAs */
    --theme-orange-light: #ff9d3d;         /* Secondary Orange (Light) - Lighter orange */

    /* Supporting Colors */
    --theme-background: #1a5490;           /* Dark Blue Background */
    --theme-dark-blue: #0f3460;            /* Dark Blue - Deep blue for footer/dark sections */
    --theme-orange-hover: #d66f00;         /* Orange (Hover State) - Darker orange */

    /* Neutral/Grayscale Colors */
    --theme-text-dark: #333;               /* Dark Gray - Primary text color */
    --theme-text-medium: #666;             /* Medium Gray - Secondary text, descriptions */
    --theme-text-light: #ffffff;           /* White - Light text */
    --theme-bg-light: #f8f9fa;             /* Light Gray (Background) - Light section backgrounds */
    --theme-bg-light-alt: #e9ecef;         /* Light Gray (Alternative) - Gradient backgrounds */
    --theme-bg-ui: #f5f5f5;                /* Light Gray (UI) - Hover states, subtle backgrounds */
    --theme-border: #e0e0e0;               /* Border Gray - Borders for cards */
    --theme-divider: #eee;                 /* Divider Gray - Light borders and dividers */

    /* Legacy compatibility */
    --theme-secondary: #fa8200;            /* Mapped to orange for CTAs */
}

/* Button Styles */
.btn-theme,
.site-btn.grad-btn,
.btn-theme-1,
.bg-theme-1 {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

.btn-theme:hover,
.site-btn.grad-btn:hover,
.btn-theme-1:hover,
.bg-theme-1:hover {
    background-color: #0f3460 !important;
    border-color: #0f3460 !important;
}

.btn-theme-outline {
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
    background-color: transparent !important;
}

.btn-theme-outline:hover {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

/* Secondary Button Style - Yellow/Cream with dark text */
.btn-secondary-theme {
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
    color: var(--theme-text-dark) !important;
}

.btn-secondary-theme:hover {
    background-color: var(--theme-orange-hover) !important;
    border-color: var(--theme-orange-hover) !important;
    color: var(--theme-text-light) !important;
}

/* Text Colors */
.text-theme-1,
.theme-teal {
    color: var(--theme-primary) !important;
}

/* Background Colors */
.bg-theme-1-opacity {
    background-color: rgba(26, 84, 144, 0.1) !important;
}

.bg-theme-1-space {
    background-color: var(--theme-primary) !important;
}

/* Border Colors */
.border-theme-1 {
    border-color: var(--theme-primary) !important;
}

/* Card Theme Colors */
.card.bg-theme-1 {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

/* Badge Theme Colors */
.badge.text-bg-theme-1,
.text-bg-theme-1 {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

/* Active/Selected States */
.nav-link.active,
.menu-active-line .nav-link.active {
    color: var(--theme-primary) !important;
}

.nav-link.active::before {
    background-color: var(--theme-primary) !important;
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(26, 84, 144, 0.25) !important;
}

/* Sidebar Active States */
.adminuiux-sidebar .nav-link.active {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

.adminuiux-sidebar .nav-link.active .menu-icon {
    color: var(--theme-text-light) !important;
}

/* Link Colors */
a {
    color: var(--theme-primary);
}

a:hover {
    color: var(--theme-orange);
}

/* Dark Mode Color Overrides */
[data-bs-theme="dark"] {
    /* Replace blue colors with theme primary in dark mode */
    --bs-primary: #1a5490;
    --bs-primary-rgb: 26, 84, 144;
}

/* Override specific blue colors in dark mode */
[data-bs-theme="dark"] .bg-primary,
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] [style*="#0037ad"],
[data-bs-theme="dark"] [style*="#003fc7"],
[data-bs-theme="dark"] [style*="#5840ef"] {
    background-color: var(--theme-primary) !important;
}

[data-bs-theme="dark"] .text-primary,
[data-bs-theme="dark"] [style*="color: #0037ad"],
[data-bs-theme="dark"] [style*="color: #003fc7"],
[data-bs-theme="dark"] [style*="color: #5840ef"] {
    color: var(--theme-secondary) !important;
}

/* Dark mode button hover states */
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-theme:hover {
    background-color: var(--theme-dark-blue) !important;
}

/* Dark mode links */
[data-bs-theme="dark"] a:not(.btn) {
    color: var(--theme-orange-light);
}

[data-bs-theme="dark"] a:not(.btn):hover {
    color: var(--theme-orange);
}

/* Progress Bar */
.progress-bar {
    background-color: var(--theme-primary) !important;
}

/* Pagination */
.pagination .page-link.active,
.pagination .page-item.active .page-link {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.pagination .page-link:hover {
    color: var(--theme-primary) !important;
}

/* Dropdown Active Items */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--theme-primary) !important;
}

/* Switch/Toggle */
.form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

/* Avatar with Theme Color */
.avatar.bg-theme-1,
.avatar.text-theme-1 {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-light) !important;
}

/* Alert Theme */
.alert-theme {
    background-color: rgba(26, 84, 144, 0.1) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary) !important;
}

/* List Group Active */
.list-group-item.active {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

/* Table Hover Effect with Theme */
.table-hover tbody tr:hover {
    background-color: rgba(26, 84, 144, 0.05) !important;
}

/* Spinner/Loader */
.spinner-border.text-theme-1,
.spinner-grow.text-theme-1 {
    color: var(--theme-primary) !important;
}

/* Custom Scrollbar (Webkit browsers) */
::-webkit-scrollbar-thumb {
    background-color: var(--theme-primary) !important;
}

/* Selection Color */
::selection {
    background-color: var(--theme-primary);
    color: var(--theme-text-light);
}

::-moz-selection {
    background-color: var(--theme-primary);
    color: var(--theme-text-light);
}

/* Apply Matter font globally */
body {
    font-family: var(--font-family-matter) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--adminuiux-title-font) !important;
    font-weight: var(--adminuiux-title-font-weight);
}

/* ============================================
   Maritime Login Page Styles
   ============================================ */

.maritime-login-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 20px;
}

/* Background with gradient and image */
.maritime-login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f3460 0%, #1a5490 50%, #2a7cc7 100%);
    z-index: -1;
}

/* Wireframe wave background image */
.wireframe-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: url('../img/bg1.avif');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    opacity: 0.5;
}

/* Login Container */
.maritime-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

/* Logo Section */
.maritime-logo-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.maritime-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.maritime-logo-icon {
    height: 40px;
    width: 40px;
}

.maritime-logo-text {
    font-family: var(--adminuiux-title-font);
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Login Card */
.maritime-login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.maritime-login-title {
    font-family: var(--adminuiux-title-font);
    font-size: 32px;
    font-weight: 500;
    color: #2d3748;
    margin: 0 0 32px 0;
}

/* Form Groups */
.maritime-form-group {
    margin-bottom: 24px;
}

.maritime-form-group label {
    display: block;
    font-family: var(--adminuiux-content-font);
    font-size: 14px;
    font-weight: 400;
    color: #718096;
    margin-bottom: 8px;
}

.maritime-input {
    width: 100%;
    padding: 14px 0;
    font-family: var(--adminuiux-content-font);
    font-size: 15px;
    color: #2d3748;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.3s ease;
}

.maritime-input:focus {
    border-bottom-color: var(--theme-orange);
}

.maritime-input::placeholder {
    color: #cbd5e0;
}

/* Form Footer */
.maritime-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.maritime-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maritime-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 3px;
    cursor: pointer;
    margin: 0;
}

.maritime-checkbox:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.maritime-remember label {
    font-family: var(--adminuiux-content-font);
    font-size: 14px;
    color: #718096;
    margin: 0;
    cursor: pointer;
}

.maritime-forgot-link {
    font-family: var(--adminuiux-content-font);
    font-size: 14px;
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

.maritime-forgot-link:hover {
    color: var(--theme-primary);
}

/* Login Button */
.maritime-login-btn {
    width: 100%;
    padding: 16px;
    font-family: var(--adminuiux-title-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #fa8200 0%, #ff9d3d 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.maritime-login-btn:hover {
    background: linear-gradient(135deg, #d66f00 0%, #fa8200 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 130, 0, 0.3);
}

.maritime-login-btn:active {
    transform: translateY(0);
}

.maritime-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Signup Text */
.maritime-signup-text {
    text-align: center;
    font-family: var(--adminuiux-content-font);
    font-size: 14px;
    color: #718096;
}

.maritime-signup-text a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.maritime-signup-text a:hover {
    color: var(--theme-orange);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .maritime-login-card {
        padding: 32px 24px;
    }

    .maritime-login-title {
        font-size: 28px;
    }

    .maritime-logo .logo-text {
        font-size: 24px;
    }
}

/* ============================================
   Maritime Dashboard Sidebar Styles (New Theme)
   ============================================ */

/* Sidebar Background - Dark Blue (override inline styles) */
.adminuiux-sidebar,
.adminuiux-sidebar-inner {
    background-color: #0f3460 !important;
    border-radius: 0 !important;
}

/* Make sidebar touch left edge */
.adminuiux-sidebar {
    left: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Remove padding from nav list */
.adminuiux-sidebar .nav {
    padding: 0 !important;
}

/* Menu Items - Square Edges */
.adminuiux-sidebar .nav-link {
    border-radius: 0 !important;
    padding: 14px 20px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.adminuiux-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Active Menu Item - Orange Color with Square Edges */
.adminuiux-sidebar .nav-link.active {
    background: #fa8200 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

.adminuiux-sidebar .nav-link.active:hover {
    background: #d66f00 !important;
}

/* Icon Colors - Override inline styles */
.adminuiux-sidebar .nav-link i.menu-icon,
.adminuiux-sidebar .nav-link svg.menu-icon,
.adminuiux-sidebar .nav-link [data-feather] {
    color: rgba(255, 255, 255, 0.5) !important;
}

.adminuiux-sidebar .nav-link.active i.menu-icon,
.adminuiux-sidebar .nav-link.active svg.menu-icon,
.adminuiux-sidebar .nav-link.active [data-feather] {
    color: #ffffff !important;
}

.adminuiux-sidebar .nav-link:hover i.menu-icon,
.adminuiux-sidebar .nav-link:hover svg.menu-icon,
.adminuiux-sidebar .nav-link:hover [data-feather] {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Menu Text Color */
.adminuiux-sidebar .menu-name {
    color: inherit !important;
}

/* Active Line Indicator - Match active color */
.adminuiux-sidebar .menu-active-line .nav-link.active::before {
    background-color: #fa8200 !important;
}

/* Sidebar Close Button */
.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
}

.sidebar-close-btn:hover {
    color: #ffffff;
}

/* Sidebar Always Visible - Desktop */
@media (min-width: 992px) {
    .adminuiux-sidebar {
        transform: translateX(0) !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        z-index: 1000 !important;
    }

    /* Hide toggle button on desktop */
    .sidebar-toggler {
        display: none !important;
    }

    /* Hide close button on desktop */
    .sidebar-close-btn {
        display: none !important;
    }
}

/* Mobile Responsive - Hidden by default */
@media (max-width: 991px) {
    .adminuiux-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 9999 !important;
        height: 100vh !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

    /* Show sidebar when toggled on mobile */
    .adminuiux-sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    /* Overlay for mobile */
    body.sidebar-mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }

    /* Show toggle button on mobile */
    .sidebar-toggler {
        display: inline-block !important;
    }

    /* Show close button on mobile */
    .sidebar-close-btn {
        display: block !important;
    }
}

/* Scrollbar for Sidebar */
.adminuiux-sidebar::-webkit-scrollbar {
    width: 6px;
}

.adminuiux-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.adminuiux-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px;
}

.adminuiux-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}


/* Preloader Black Background with Opacity */
.pageloader {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 3 Dots Loader */
.dots-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: dots-bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dots-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dots-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Old Panel Layout Sidebar Styles (Money Invest Theme)
   ============================================ */

/* Sidebar Background - Dark Blue */
.panel-layout .side-nav {
    background-color: #0f3460 !important;
    width: 256px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 991px) {
    .panel-layout .side-nav {
        width: 0 !important;
    }
}

/* Sidebar Menu Items - Square Edges */
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a {
    border-radius: 0 !important;
    padding: 14px 20px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Active Menu Item - Orange with Square Edges */
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a {
    background: #fa8200 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a:hover {
    background: #d66f00 !important;
}

/* Icon Colors */
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a i,
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a [icon-name] {
    color: rgba(255, 255, 255, 0.5) !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a i,
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a [icon-name] {
    color: #ffffff !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a:hover i,
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a:hover [icon-name] {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Wallet Box Styling - Update to match dark theme */
.panel-layout .side-nav .side-wallet-box {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 !important;
}

.panel-layout .side-nav .side-wallet-box .user-balance-card {
    background-color: transparent !important;
}

.panel-layout .side-nav .side-wallet-box .wallet-name .name,
.panel-layout .side-nav .side-wallet-box .wallet-name .default,
.panel-layout .side-nav .side-wallet-box .wallet-info .wallet-id,
.panel-layout .side-nav .side-wallet-box .wallet-info .balance {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Sidebar Buttons - Square Edges */
.panel-layout .side-nav .side-wallet-box .actions .user-sidebar-btn {
    border-radius: 0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.panel-layout .side-nav .side-wallet-box .actions .user-sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.panel-layout .side-nav .side-wallet-box .actions .user-sidebar-btn.red-btn {
    background-color: #fa8200 !important;
    border-color: #fa8200 !important;
}

.panel-layout .side-nav .side-wallet-box .actions .user-sidebar-btn.red-btn:hover {
    background-color: #d66f00 !important;
    border-color: #d66f00 !important;
}

/* Logout Button */
.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item button.site-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 0 !important;
}

.panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item button.site-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Adjust Page Container for New Sidebar Width */
.panel-layout .page-container {
    padding-left: 256px !important;
}

@media (max-width: 991px) {
    .panel-layout .page-container {
        padding-left: 0 !important;
    }
}

/* Sidebar Hover State (when folded) */
.panel-layout.nav-folded .side-nav.side-nav-hover {
    width: 256px !important;
}

@media (max-width: 991px) {
    .panel-layout.nav-folded .side-nav {
        width: 256px !important;
    }
}

/* Scrollbar for Sidebar */
.panel-layout .side-nav::-webkit-scrollbar {
    width: 6px;
}

.panel-layout .side-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.panel-layout .side-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px;
}

.panel-layout .side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}
