/* VoltronCloud Theme Customization for FOSSBilling */

:root {
    --primary-blue: #153462;
    --secondary-blue: #163b88;
    --accent-orange: #f59e0b;
    --dark-bg: #02345c;
    --light-bg: #fafafa;
}

/* Header & Navigation */
.navbar, .header {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff;
}

.navbar-brand, .navbar-brand:hover {
    color: #fff !important;
}

.nav-link, .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease-in-out;
}

.nav-link:hover, .navbar-nav .nav-link:hover {
    color: #f59e0b !important;
    opacity: 1;
}

/* Primary Buttons */
.btn-primary, .btn-main {
    background-color: #153462 !important;
    border-color: #153462 !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-main:hover {
    background-color: #0a1930 !important;
    border-color: #0a1930 !important;
}

/* Accent Buttons */
.btn-accent {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}

.btn-accent:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}

/* Links */
a {
    color: #153462 !important;
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: #163b88 !important;
}

/* Backgrounds */
.bg-primary {
    background-color: #153462 !important;
}

.bg-secondary {
    background-color: #163b88 !important;
}

.bg-light, .light-bg {
    background-color: #fafafa !important;
}

.bg-dark {
    background-color: #02345c !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #153462 !important;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

/* Cards & Containers */
.card {
    border-color: #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease-in;
}

.card:hover {
    box-shadow: 0 1rem 3rem rgba(31, 45, 61, 0.125);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff !important;
    border-color: #153462 !important;
}

.card-body {
    background-color: #fff;
}

/* Forms */
.form-control, .form-select {
    border-color: #e2e8f0;
    transition: all 0.3s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #153462;
    box-shadow: 0 0 0 0.2rem rgba(21, 52, 98, 0.25);
}

.form-label {
    color: #475569;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
}

/* Alerts */
.alert-primary {
    background-color: rgba(21, 52, 98, 0.1);
    border-color: #153462;
    color: #153462;
}

.alert-success {
    background-color: rgba(75, 173, 68, 0.1);
    border-color: #4bad44;
    color: #388133;
}

.alert-danger {
    background-color: rgba(255, 5, 5, 0.1);
    border-color: #ff0505;
    color: #c70000;
}

/* Badges */
.badge-primary, .badge-main {
    background-color: #153462 !important;
}

.badge-secondary {
    background-color: #163b88 !important;
}

.badge-accent {
    background-color: #f59e0b !important;
}

/* Tables */
.table {
    border-color: #e2e8f0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(21, 52, 98, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(21, 52, 98, 0.05);
}

.table thead {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff !important;
}

/* Sidebar */
.sidebar, .side-menu {
    background-color: #fafafa;
    border-right: 1px solid #e2e8f0;
}

.sidebar-nav .nav-link {
    color: #475569;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #153462;
    background-color: rgba(21, 52, 98, 0.1);
    border-left: 3px solid #153462;
}

/* Footer */
footer, .footer {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff;
    border-top: 1px solid #e2e8f0;
}

footer a, .footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease-in-out;
}

footer a:hover, .footer a:hover {
    color: #f59e0b !important;
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: #fafafa;
    border-radius: 0.375rem;
}

.breadcrumb-item.active {
    color: #153462;
}

.breadcrumb-item a {
    color: #153462;
}

/* Panels & Wells */
.panel, .well {
    border-color: #e2e8f0;
    border-radius: 1rem;
}

.panel-heading {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff !important;
}

/* Dropdowns */
.dropdown-menu {
    border-color: #e2e8f0;
    box-shadow: 0 3px 20px 0 rgba(0, 0, 0, 0.12);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(21, 52, 98, 0.1);
    color: #153462;
}

/* Pagination */
.pagination .page-link {
    color: #153462;
    border-color: #e2e8f0;
}

.pagination .page-link:hover {
    background-color: #153462;
    border-color: #153462;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #153462;
    border-color: #153462;
}

/* Messages/Notifications */
.message-success {
    border-left: 4px solid #4bad44;
    background-color: rgba(75, 173, 68, 0.1);
}

.message-error {
    border-left: 4px solid #ff0505;
    background-color: rgba(255, 5, 5, 0.1);
}

.message-warning {
    border-left: 4px solid #f59e0b;
    background-color: rgba(245, 158, 11, 0.1);
}

.message-info {
    border-left: 4px solid #163b88;
    background-color: rgba(22, 59, 136, 0.1);
}

/* Gradients */
.gradient-primary {
    background: linear-gradient(75deg, #153462, #163b88) !important;
    color: #fff;
}

.gradient-primary-hover:hover {
    background: linear-gradient(75deg, #0a1930, #0d2453) !important;
}

/* Borders */
.border-primary {
    border-color: #153462 !important;
}

.border-accent {
    border-color: #f59e0b !important;
}

/* Typography */
body {
    font-family: 'Inter', Helvetica, sans-serif;
    color: #475569;
}

.text-primary {
    color: #153462 !important;
}

.text-secondary {
    color: #163b88 !important;
}

.text-accent {
    color: #f59e0b !important;
}

.text-muted {
    color: #898f98 !important;
}

/* Dividers */
hr, .divider {
    border-color: #e2e8f0;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
    box-shadow: 0 1rem 3rem rgba(21, 52, 98, 0.15);
    transform: translateY(-5px);
}

/* Custom VoltronCloud Styles */
.voltron-header {
    background: linear-gradient(75deg, #153462, #163b88);
    color: #fff;
    padding: 20px 0;
}

.voltron-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(75deg, #153462, #163b88);
    color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.voltron-feature-icon.accent {
    background-color: #f59e0b;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .sidebar-nav .nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .sidebar-nav .nav-link.active {
        border-left: none;
        border-bottom: 2px solid #153462;
    }
}

