/* Custom Modern Design - Baseline Driver Training Theme */
/* Orange (#ea580c) and Dark (#0a0a0a, #171717, #262626) theme */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

/* Apply Rajdhani font globally */
body, html {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
}

/* Additional global dark theme styles */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p, span, div {
    color: #e5e7eb;
}

a {
    color: #ea580c;
    text-decoration: none;
}

a:hover {
    color: #f97316;
}

/* Form controls */
.form-control, .form-select {
    background-color: #171717;
    border: 1px solid #262626;
    color: #e5e7eb;
}

.form-control:focus, .form-select:focus {
    background-color: #171717;
    border-color: #ea580c;
    color: #e5e7eb;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
}

.form-control::placeholder {
    color: #737373;
}

.form-label {
    color: #e5e7eb;
    font-weight: 500;
}

/* Modal dark theme */
.modal-content {
    background-color: #171717;
    border: 1px solid #262626;
}

.modal-header {
    border-bottom: 1px solid #262626;
}

.modal-footer {
    border-top: 1px solid #262626;
}

.modal-title {
    color: #ffffff;
}

/* Dropdown menu */
.dropdown-menu {
    background-color: #171717;
    border: 1px solid #262626;
}

.dropdown-item {
    color: #e5e7eb;
}

.dropdown-item:hover {
    background-color: #262626;
    color: #ea580c;
}

/* Pagination */
.pagination .page-link {
    background-color: #171717;
    border-color: #262626;
    color: #e5e7eb;
}

.pagination .page-link:hover {
    background-color: #262626;
    border-color: #ea580c;
    color: #ea580c;
}

.pagination .page-item.active .page-link {
    background-color: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

/* Sidebar styling - Dark Theme with Orange Accents */
.sidebar {
    background: #171717 !important;
    border-right: 1px solid #262626;
    color: #e5e7eb !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    width: 250px;
    overflow: hidden;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin: 3px 8px;
    color: #a3a3a3;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
}

.sidebar-item:hover {
    background: #262626;
    color: #e5e7eb;
}

.sidebar-item.active {
    background: #ea580c;
    color: #ffffff;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-item.active i {
    color: #ffffff;
}

.sidebar-divider {
    padding: 16px 20px 10px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    border-top: 1px solid #262626;
    padding: 8px 0;
    padding-bottom: 100px;
    flex-shrink: 0;
    background: #171717;
}

.sidebar-footer .sidebar-item {
    padding: 8px 16px;
    margin: 3px 8px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 3px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-user:hover {
    background: #262626;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #404040;
    color: #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1px;
}

.sidebar-user-role {
    font-size: 12px;
    color: #a3a3a3;
    line-height: 1.2;
}

/* Stat cards - dark theme */
.stat-card {
    background: #171717;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #262626;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon-wrapper.blue {
    background: rgba(234, 88, 12, 0.1);
    color: #fb923c;
}

.stat-card-icon-wrapper.green {
    background: rgba(234, 88, 12, 0.1);
    color: #f97316;
}

.stat-card-icon-wrapper.yellow {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.stat-card-icon-wrapper.cyan {
    background: rgba(234, 88, 12, 0.1);
    color: #c2410c;
}

.stat-card-content h6 {
    font-size: 11px;
    font-weight: 500;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-card-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Recent Activity - dark theme */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #262626;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(234, 88, 12, 0.2);
    color: #f97316;
}

.activity-icon.warning {
    background: rgba(234, 88, 12, 0.2);
    color: #fb923c;
}

.activity-icon.info {
    background: rgba(234, 88, 12, 0.2);
    color: #ea580c;
}

.activity-content h6 {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.activity-content p {
    font-size: 12px;
    color: #a3a3a3;
    margin: 0;
}

/* Quick Links - colored boxes */
.quick-link-box {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.quick-link-box:last-child {
    margin-bottom: 0;
}

.quick-link-box.blue {
    background: rgba(234, 88, 12, 0.1);
    color: #fb923c;
}

.quick-link-box.blue:hover {
    background: rgba(234, 88, 12, 0.2);
}

.quick-link-box.green {
    background: rgba(234, 88, 12, 0.1);
    color: #f97316;
}

.quick-link-box.green:hover {
    background: rgba(234, 88, 12, 0.2);
}

.quick-link-box.cyan {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.quick-link-box.cyan:hover {
    background: rgba(234, 88, 12, 0.2);
}

.quick-link-box i {
    font-size: 20px;
}

.quick-link-box span {
    font-size: 14px;
    font-weight: 500;
}

/* Card headers */
.card-header {
    background: #171717 !important;
    border-bottom: 1px solid #262626;
    padding: 16px 24px;
}

.card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* General card styling */
.card {
    border: 1px solid #262626;
    border-radius: 12px;
    box-shadow: none !important;
    background: #171717;
}

.card-body {
    padding: 24px;
    color: #e5e7eb;
}

/* Main content background */
.main-background {
    background-color: #0a0a0a !important;
}

/* Tables */
.table {
    font-size: 14px;
    color: #e5e7eb;
}

.table thead th {
    font-size: 11px;
    font-weight: 600;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #262626;
    padding: 12px 16px;
    background: #171717;
}

.table tbody td {
    padding: 12px 16px;
    color: #e5e7eb;
    border-bottom: 1px solid #262626;
    background: #171717;
}

/* Buttons - Orange theme */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #ffffff;
}

/* Ensure all small buttons have same height */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    border-width: 1px;
}

/* Outline buttons - orange theme */
.btn-outline-primary {
    background: transparent;
    border: 1px solid #ea580c;
    color: #ea580c;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-outline-primary:hover {
    background: rgba(234, 88, 12, 0.1);
    border-color: #ea580c;
    color: #f97316;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #dc2626;
    color: #ef4444;
}

.btn-outline-warning {
    background: transparent;
    border: 1px solid #fb923c;
    color: #fb923c;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-outline-warning:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: #f97316;
    color: #fb923c;
}

.btn-outline-success {
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #059669;
    color: #10b981;
}

.btn-success {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-success:hover {
    background: #c2410c;
    border-color: #c2410c;
    color: #ffffff;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #525252;
    color: #a3a3a3;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
}

.btn-outline-secondary:hover {
    background: #262626;
    border-color: #737373;
    color: #d4d4d4;
}

.btn-outline-secondary.btn-sm,
.btn-outline-primary.btn-sm,
.btn-outline-danger.btn-sm,
.btn-outline-warning.btn-sm,
.btn-outline-success.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    border-width: 1px;
}

/* Badges - Orange/Dark theme */
.badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.badge.bg-primary {
    background: rgba(234, 88, 12, 0.2) !important;
    color: #fb923c !important;
    border-color: rgba(234, 88, 12, 0.3) !important;
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.badge.bg-warning {
    background: rgba(251, 146, 60, 0.2) !important;
    color: #fb923c !important;
    border-color: rgba(251, 146, 60, 0.3) !important;
}

.badge.bg-secondary {
    background: #262626 !important;
    color: #a3a3a3 !important;
    border-color: #404040 !important;
}

.badge.bg-info {
    background: rgba(234, 88, 12, 0.2) !important;
    color: #f97316 !important;
    border-color: rgba(234, 88, 12, 0.3) !important;
}

.badge.text-dark {
    color: #ea580c !important;
}

/* User avatar at bottom */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #404040;
    color: #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

/* Currency Switcher */
.currency-switcher {
    background: #262626;
    padding: 4px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.currency-label {
    font-size: 14px;
    font-weight: 500;
    color: #a3a3a3;
    padding: 0 8px;
}

.currency-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #a3a3a3;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-btn:hover {
    color: #e5e7eb;
}

.currency-btn.active {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Pricing Cards - Dark Orange Theme */
.pricing-card {
    background: #171717;
    border: 1px solid #262626;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.pricing-card-highlighted {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
    color: #ffffff;
}

.pricing-card-highlighted:hover {
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.6);
    transform: translateY(-4px);
}

.pricing-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.pricing-card-highlighted .pricing-title {
    color: #ffffff;
}

.pricing-subtitle {
    font-size: 13px;
    color: #a3a3a3;
    margin: 0;
}

.pricing-card-highlighted .pricing-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-price {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-currency {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.pricing-card-highlighted .pricing-currency {
    color: #ffffff;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pricing-card-highlighted .pricing-amount {
    color: #ffffff;
}

.pricing-interval {
    font-size: 16px;
    color: #a3a3a3;
    margin-left: 4px;
}

.pricing-card-highlighted .pricing-interval {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features {
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e5e7eb;
    border-bottom: 1px solid #262626;
}

.pricing-card-highlighted .pricing-features li {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #ea580c;
    font-size: 16px;
}

.pricing-card-highlighted .pricing-features li i {
    color: #ffffff;
}

.pricing-footer {
    margin-top: auto;
}

.pricing-card .btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

.pricing-card-highlighted .btn-light {
    background: #ffffff;
    color: #ea580c;
    border: none;
}

.pricing-card-highlighted .btn-light:hover {
    background: #f3f4f6;
    color: #c2410c;
}

/* Accordion - Dark Theme */
.accordion-item {
    border: 1px solid #262626;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #171717;
}

.accordion-item:first-child {
    border-top: 1px solid #262626;
}

.accordion-button {
    background: #171717;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 16px 20px;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: #262626;
    color: #ea580c;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #262626;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a3a3a3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ea580c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    background: #171717;
    color: #e5e7eb;
}

/* Login & SignUp Pages - Dark Orange Theme */
.main-content-login {
    background-color: #0a0a0a !important;
}

/* Login page split layout */
.bg-primary.opacity-75 {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.9) 0%, rgba(194, 65, 12, 0.9) 100%) !important;
    opacity: 1 !important;
}

.bg-white {
    background: #171717 !important;
}

/* Login form styling */
.vh-100 h3 {
    color: #ffffff;
    font-weight: 700;
}

/* Form check for remember me */
.form-check-input {
    background-color: #262626;
    border-color: #404040;
}

.form-check-input:checked {
    background-color: #ea580c;
    border-color: #ea580c;
}

.form-check-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.25);
}

.form-check-label {
    color: #e5e7eb;
}

/* Links on login/signup */
.text-center a, .card-footer a {
    color: #ea580c;
    text-decoration: none;
}

.text-center a:hover, .card-footer a:hover {
    color: #f97316;
    text-decoration: underline;
}

/* SignUp card specific */
.card-header.bg-primary {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid #262626;
}

.card-footer.bg-light {
    background: #262626 !important;
    border-top: 1px solid #404040;
    color: #e5e7eb;
}

.card-footer small {
    color: #a3a3a3;
}

/* Validation error messages */
.text-danger {
    color: #ef4444 !important;
}

span.text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
