body {
    background-color: #0d0d1a;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: #0a0a14 !important;
    border-bottom: 1px solid #333;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #fff !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 10px;
}

.card {
    border: none;
    border-radius: 10px;
}

.alert {
    border-radius: 5px;
}

/* Landing Page Styles */
.space-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(ellipse at bottom, #0d0d1a 0%, #030308 100%);
    overflow: hidden;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

.shooting-stars-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.5"/><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.7"/><circle cx="90" cy="90" r="0.8" fill="white" opacity="0.3"/></svg>') repeat;
    animation: move-stars 200s linear infinite;
    z-index: 1;
}

@keyframes move-stars {
    from { background-position: 0 0; }
    to { background-position: 10000px 5000px; }
}

.jumbotron {
    background-color: transparent !important;
    color: #fff;
    position: relative;
    z-index: 2;
}

.jumbotron h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
}

.jumbotron p.lead {
    font-size: 1.25rem;
    opacity: 0.8;
}

.custom-btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-secondary {
    background-color: #333;
    border-color: #333;
}

.features-section {
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Prediction Page and other content styles */
.container {
    z-index: 3;
    position: relative;
}

/* Ensure the content is visible on a dark background */
.card-body {
    background-color: #1a1a33;
    color: #fff;
}

.form-group .custom-file-label {
    background-color: #2c2c47;
    border: 1px solid #444;
}

.form-group .custom-file-label:hover {
    background-color: #3e3e60;
}

/* Prediction Result Styles (Matches the image) */
.prediction-results {
    background-color: #fff;
    color: #000;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.prediction-results .result-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.result-table {
    border-collapse: collapse;
    width: 100%;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.result-row:first-child {
    border-top: none;
}

.result-label {
    font-weight: bold;
    color: #555;
}

.result-value {
    color: #333;
}

/* Badge styles */
.badge {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.badge-success {
    background-color: #28a745;
    color: #fff;
}
.badge-danger {
    background-color: #dc3545;
    color: #fff;
}
.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}
.badge-warning {
    background-color: #ffc107;
    color: #212529;
}
.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

/* Progress bar */
.progress {
    height: 25px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    text-align: right;
    padding-right: 10px;
    line-height: 25px;
}

/* Admin Panel Specific Styles */
.admin-card {
    background-color: #1a1a33 !important;
    color: #fff !important;
    border: 1px solid #20C997;
    box-shadow: 0 0 10px #20C997;
}

.admin-card .card-body {
    background-color: #1a1a33 !important;
    color: #fff;
}

/* Specific styles for the revenue card to match the image */
.revenue-card {
    border: 1px solid #20C997 !important;
    box-shadow: 0 0 15px #20C997;
}

.revenue-card .card-title, .revenue-card .card-text {
    color: #20C997 !important;
    text-shadow: 0 0 8px #20C997;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Specific styles for the users card to match the image */
.users-card {
    border: 1px solid #E83E8C !important;
    box-shadow: 0 0 15px #E83E8C;
}

.users-card .card-title, .users-card .card-text {
    color: #E83E8C !important;
    text-shadow: 0 0 8px #E83E8C;
    font-size: 2.5rem;
    font-weight: bold;
}

.table {
    background-color: #1a1a33 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}

.table th, .table td {
    border-color: #333 !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure buttons are visible */
.btn-danger, .btn-primary, .btn-info, .btn-success, .btn-warning {
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Button groups */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Ensure pagination links are visible */
.page-link {
    background-color: #1a1a33;
    color: #fff;
    border-color: #333;
}

.page-link:hover {
    background-color: #333;
    color: #fff;
}

/* Other admin elements */
.form-control, .custom-select {
    background-color: #1a1a33;
    color: #fff;
    border: 1px solid #333;
}

.form-control:focus {
    background-color: #1a1a33;
    color: #fff;
    border-color: #555;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

/* Custom file input styles */
.custom-file-input {
    background-color: #2c2c47;
    color: #fff;
}

.custom-file-label {
    background-color: #2c2c47;
    border: 1px solid #444;
    color: #fff;
}

.custom-file-label::after {
    content: "Browse";
    background-color: #4CAF50;
    border-left: 1px solid #444;
    color: #fff;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Form check styles */
.form-check-input {
    background-color: #2c2c47;
    border: 1px solid #444;
}

.form-check-input:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

/* Specific styles for the prediction card to be light */
.card.shadow-lg.p-3.mb-5.bg-dark.text-white.rounded {
    background-color: #1a1a33 !important;
}

/* Post Content Styles */
.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.post-content br {
    margin-bottom: 1rem;
    display: block;
    content: "";
}

/* News card styles */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.news-card img {
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* Dropdown styles */
.dropdown-menu {
    background-color: #1a1a33;
    border: 1px solid #333;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #2c2c47;
    color: #fff;
}

.dropdown-divider {
    border-color: #333;
}

/* Text colors */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Alert styles */
.alert-success {
    background-color: #155724;
    border-color: #155724;
    color: #d4edda;
}

.alert-danger {
    background-color: #721c24;
    border-color: #721c24;
    color: #f8d7da;
}

.alert-warning {
    background-color: #856404;
    border-color: #856404;
    color: #fff3cd;
}

.alert-info {
    background-color: #0c5460;
    border-color: #0c5460;
    color: #d1ecf1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2.5rem;
    }
    
    .jumbotron p.lead {
        font-size: 1.1rem;
    }
    
    .btn-group-sm .btn {
        display: block;
        margin-bottom: 5px;
        width: 100%;
    }
    
    .btn-group-sm {
        display: flex;
        flex-direction: column;
    }
}

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

::-webkit-scrollbar-track {
    background: #0d0d1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.custom-select:focus,
.custom-file-input:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Table responsive wrapper */
.table-responsive {
    border-radius: 5px;
    overflow: hidden;
}

/* Custom badge variants */
.badge-primary {
    background-color: #007bff;
}

.badge-dark {
    background-color: #343a40;
}

/* Image styles for posts */
.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Form text muted */
.form-text.text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

/* Custom border utilities */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Text selection */
::selection {
    background-color: #4CAF50;
    color: white;
}

::-moz-selection {
    background-color: #4CAF50;
    color: white;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        background-color: #fff !important;
        color: #000 !important;
    }
}
