/* Velo Hub CSS Variables */
:root {
    --velo-dark: #0F1E25;
    --velo-teal: #73C8CB;
    --velo-white: #FFFFFF;
}

/* Base Body Styling */
body {
    background-color: var(--velo-dark);
    color: var(--velo-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Login Body */
.login-body {
    background: var(--velo-dark);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.signup-body {
    background: var(--velo-dark);
    min-height: 100vh;
    position: relative;
}

/* Bootstrap Overrides */
.bg-velo-dark {
    background-color: var(--velo-dark) !important;
}

.bg-velo-teal {
    background-color: var(--velo-teal) !important;
}

.btn-velo-teal {
    background-color: var(--velo-teal);
    border-color: var(--velo-teal);
    color: var(--velo-white);
    font-weight: 500;
}

.btn-velo-teal:hover {
    background-color: #5a9ca0;
    border-color: #5a9ca0;
    color: var(--velo-white);
}

.text-velo-teal {
    color: var(--velo-teal) !important;
}

/* Navigation */
.navbar-dark .navbar-brand {
    color: var(--velo-white) !important;
    font-weight: bold;
}

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

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--velo-teal) !important;
}

/* Login Container */
.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.login-box, .signup-box {
    background: rgba(15, 30, 37, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(115, 200, 203, 0.3);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-logo {
    max-width: 150px;
    height: auto;
}

/* Form Controls */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(115, 200, 203, 0.3);
    color: var(--velo-white);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--velo-teal);
    box-shadow: 0 0 0 0.2rem rgba(115, 200, 203, 0.25);
    color: var(--velo-white);
}

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

.form-label {
    color: var(--velo-white);
    font-weight: 500;
}

/* Hub Cards */
.hub-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(115, 200, 203, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hub-card:hover {
    transform: translateY(-5px);
    background: rgba(115, 200, 203, 0.2);
    border-color: var(--velo-teal);
    box-shadow: 0 8px 25px rgba(115, 200, 203, 0.3);
}

.hub-card-icon {
    font-size: 3rem;
    color: var(--velo-teal);
    margin-bottom: 1rem;
}

.hub-card h4 {
    color: var(--velo-white);
    margin-bottom: 1rem;
    font-weight: bold;
}

.hub-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.hub-card-badge {
    background: var(--velo-teal);
    color: var(--velo-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: auto;
}

.hub-card-action {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(115, 200, 203, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--velo-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.hub-card-action span {
    display: block;
}

.hub-card-action i {
    font-size: 1.5rem;
    color: var(--velo-teal);
}

/* Statistics Cards */
.stats-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border: 1px solid rgba(115, 200, 203, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--velo-teal);
    margin-right: 1rem;
}

.stat-content h5 {
    color: var(--velo-white);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-content p {
    color: var(--velo-teal);
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Tables */
.table-dark {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
    --bs-table-border-color: rgba(115, 200, 203, 0.2);
}

.table-dark th {
    background: rgba(115, 200, 203, 0.2);
    border-color: rgba(115, 200, 203, 0.3);
    color: var(--velo-white);
    font-weight: 600;
}

/* Warranty Form */
.warranty-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(115, 200, 203, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
}

.info-step {
    padding: 1rem;
}

.info-step i {
    display: block;
}

/* Invite Code Cards */
.invite-code-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(115, 200, 203, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.invite-code-card h6 {
    color: var(--velo-white);
    margin-bottom: 0.5rem;
}

.invite-code-card code {
    background: var(--velo-teal);
    color: var(--velo-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 76px);
    padding-top: 0;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.9);
    color: var(--velo-white);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.9);
    color: var(--velo-white);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.9);
    color: var(--velo-dark);
}

.alert-info {
    background: rgba(13, 202, 240, 0.9);
    color: var(--velo-white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hub-card {
        margin-bottom: 1rem;
    }
    
    .login-box, .signup-box {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--velo-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--velo-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a9ca0;
}

/* Modal Overrides */
.modal-content {
    border: 1px solid rgba(115, 200, 203, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(115, 200, 203, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(115, 200, 203, 0.3);
}

/* Demo User Buttons */
.demo-users-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.demo-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.4rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 70px;
}

.demo-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.demo-btn span {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
}

.demo-btn small {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.2rem;
    text-align: center;
    line-height: 1.1;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.admin-btn {
    border-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
}

.admin-btn:hover {
    border-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(220, 53, 69, 0.2));
}

.ward-btn {
    border-color: #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.2), rgba(253, 126, 20, 0.1));
}

.ward-btn:hover {
    border-color: #fd7e14;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.3), rgba(253, 126, 20, 0.2));
}

.service-btn {
    border-color: #20c997;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2), rgba(32, 201, 151, 0.1));
}

.service-btn:hover {
    border-color: #20c997;
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.3), rgba(32, 201, 151, 0.2));
}

.customer-btn {
    border-color: #6f42c1;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.2), rgba(111, 66, 193, 0.1));
}

.customer-btn:hover {
    border-color: #6f42c1;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.3), rgba(111, 66, 193, 0.2));
}

/* Notification Styles */
.notification-dropdown {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.notification-item:last-of-type {
    border-bottom: none;
}

.notification-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#notificationBadge {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wholesaler Partner Portal — only reset text inside white card/modal surfaces */
.wholesaler-portal .card,
.wholesaler-portal .modal-content,
.wholesaler-portal .list-group-item {
    color: #212529;
}
.wholesaler-portal .card h1,
.wholesaler-portal .card h2,
.wholesaler-portal .card h3,
.wholesaler-portal .card h4,
.wholesaler-portal .card h5,
.wholesaler-portal .card h6,
.wholesaler-portal .modal-content h1,
.wholesaler-portal .modal-content h2,
.wholesaler-portal .modal-content h3,
.wholesaler-portal .modal-content h4,
.wholesaler-portal .modal-content h5,
.wholesaler-portal .modal-content h6 {
    color: #212529;
}
.wholesaler-portal .card .text-muted,
.wholesaler-portal .modal-content .text-muted {
    color: #6c757d !important;
}
.wholesaler-portal .card .form-label,
.wholesaler-portal .modal-content .form-label {
    color: #212529;
}
.wholesaler-portal .card .form-control,
.wholesaler-portal .card .form-select,
.wholesaler-portal .modal-content .form-control,
.wholesaler-portal .modal-content .form-select {
    color: #212529;
    background-color: #fff;
}
.wholesaler-portal .card .fw-semibold,
.wholesaler-portal .modal-content .fw-semibold {
    color: #212529;
}
.wholesaler-portal .card .form-check-label,
.wholesaler-portal .modal-content .form-check-label {
    color: #212529;
}
