:root {
    --background: #1C2526; /* Dark gray background */
    --primary: #00DDEB; /* Neon Blue */
    --secondary: #2C3539; /* Darker card background */
    --highlight: #3A4448; /* Divider for dark theme */
    --text-primary: #E0E0E0; /* Light gray text */
    --text-secondary: #AAAAAA; /* Gray for secondary text */
    --error: #FF5555; /* Neon red for errors */
    --success: #39FF14; /* Neon green for success */
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Montserrat', "Google Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 90%;
    margin: 20px auto;
    padding: 24px;
}

.card {
    background-color: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 10px 0;
}

h1, h2, h3 {
    color: var(--primary);
}

input, textarea, button {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--highlight);
    border-radius: 8px;
    background-color: var(--secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 221, 235, 0.5);
    background-color: var(--secondary);
}

button {
    background-color: var(--primary);
    color: #1C2526;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
    transition: box-shadow 0.3s, transform 0.3s;
}

button:hover {
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.8);
    transform: translateY(-3px);
}

.error {
    background-color: var(--error);
    color: #1C2526;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.success {
    background-color: var(--success);
    color: #1C2526;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.request-item {
    background-color: var(--highlight);
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    color: var(--text-primary);
}

.chat-message {
    background-color: var(--highlight);
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    color: var(--text-primary);
}

.chat-box {
    background-color: var(--highlight);
    border: 1px solid var(--highlight);
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    table-layout: fixed;
}

th, td {
    border: 1px solid var(--highlight);
    padding: 12px;
    text-align: center;
    color: var(--text-primary);
    word-wrap: break-word;
    white-space: normal;
}

th {
    background: linear-gradient(45deg, var(--primary), var(--success));
    color: #1C2526;
    font-weight: 600;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: var(--highlight);
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

.navbar-dark {
    background-color: var(--secondary);
    border-bottom: 1px solid var(--highlight);
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: var(--success) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-link:hover {
    background-color: var(--primary);
    color: #1C2526 !important;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.nav-link.active {
    background-color: var(--primary);
    color: #1C2526 !important;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
    font-weight: bold;
}

.navbar-toggler {
    border-color: var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 221, 235, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.pagination .page-link {
    background-color: var(--secondary);
    color: var(--text-primary);
    border: 1px solid var(--highlight);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    color: #1C2526;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.menu-bar {
    background-color: var(--secondary);
    border-bottom: 1px solid var(--highlight);
    padding: 10px 0;
    margin-bottom: 20px;
}

.menu-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.menu-bar li {
    margin: 0 15px;
}

.menu-bar a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    display: block;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.menu-bar a:hover {
    background-color: var(--primary);
    color: #1C2526;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.list-group-item a {
    color: var(--primary);
    text-decoration: none;
}

.list-group-item a:hover {
    color: var(--success);
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
    visibility: visible;
}

.alert-danger {
    background-color: #FF5555;
    color: #1C2526;
}

.alert-success {
    background-color: #39FF14;
    color: #1C2526;
}

.alert-info {
    background-color: #00DDEB;
    color: #1C2526;
}

#analysis_result, #analyze_result {
    min-height: 20px;
    display: block;
    visibility: visible;
    color: var(--text-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 16px;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    input, textarea, button {
        font-size: 14px;
        padding: 10px;
        margin: 8px 0;
    }
    button {
        min-height: 48px; /* Better touch target */
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .menu-bar ul {
        flex-direction: column;
        align-items: center;
    }
    .menu-bar li {
        margin: 5px 0;
    }
    .menu-bar a {
        width: 100%;
        text-align: center;
    }
    .nav-link {
        padding: 12px 20px; /* Larger touch target */
        margin: 5px 0;
    }
    .pagination .page-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    .chat-box {
        max-height: 200px; /* Shorter on mobile */
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    .container { padding: 10px; }
    input, textarea, button { font-size: 12px; }
    .nav-link { font-size: 14px; }
    .navbar-brand { font-size: 1.2rem; }
    .chat-box { max-height: 150px; }
}
/* Add to existing styles.css */
#analyze_result {
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    background-color: var(--highlight);
}

.list-group-item {
    background-color: var(--highlight);
    color: var(--text-primary);
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 10px;
    transition: background-color 0.3s;
}

.list-group-item:hover {
    background-color: var(--primary);
    color: #1C2526;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
}

.list-group-item a {
    color: var(--success);
    text-decoration: none;
}

.list-group-item a:hover {
    color: var(--primary);
}
/* Add to existing styles.css */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
}

.text-neon {
    color: var(--success);
    transition: color 0.3s;
}

.text-neon:hover {
    color: var(--primary);
}
/* Add to existing styles.css */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
/* Add to existing styles.css */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 20px;
}

.carousel-control-prev, .carousel-control-next {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.card-title {
    color: var(--primary);
}

.card-text {
    color: var(--text-secondary);
}

.card-text strong {
    color: var(--text-primary);
}

.comment-box {
    max-height: 100px;
    overflow-y: auto;
    border: 1px solid var(--highlight);
    border-radius: 8px;
    padding: 10px;
}

.text-neon {
    color: var(--success) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 150px;
    }
    .comment-box {
        max-height: 80px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 120px;
    }
    .comment-box {
        max-height: 60px;
    }
}
/* Add to existing styles.css */
.glow-text {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 221, 235, 0.8);
}

.animated-card {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.tabs .btn-neon {
    transition: transform 0.3s, box-shadow 0.3s;
}

.tabs .btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.8);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 10px;
    }
    .tabs .btn-neon {
        width: 100%;
    }
}
/* Add to existing styles.css */
.text-light {
    color: var(--text-primary) !important; /* #E0E0E0 - Light gray */
}

/* Ensure form labels are visible */
.form-label {
    color: var(--text-primary) !important; /* Already in styles.css, just ensuring */
}

/* Optional: If you want a different color for specific text (e.g., neon green) */
.text-neon-alt {
    color: var(--success) !important; /* #39FF14 - Neon green */
}
/* Add to existing styles.css */
.chat-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.3);
}

.chat-form .input-group {
    align-items: center;
}

.chat-form .input-group .btn-neon {
    margin-left: 10px;
    padding: 10px 15px;
}

.chat-box.animated-scroll {
    max-height: 300px;
    overflow-y: auto;
    animation: slideIn 0.5s ease-out;
}

.chat-message {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.chat-message:hover {
    transform: translateX(5px);
}

.animated-fade {
    animation: fadeIn 1s ease-in-out;
}

.animated-scroll {
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .chat-box.animated-scroll {
        max-height: 200px;
    }
    .chat-form .input-group {
        flex-direction: column;
    }
    .chat-form .input-group .btn-neon {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    .chat-form .input-group input {
        margin-bottom: 10px;
    }
    #image-preview {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .chat-box.animated-scroll {
        max-height: 150px;
    }
    #image-preview {
        max-width: 80px;
    }
}
/* Add to existing styles.css */
.glow-text {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 221, 235, 0.8);
}

.text-light {
    color: var(--text-primary) !important; /* #E0E0E0 - Light gray */
}

.card.animated-fade {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.maintenance-table th, .maintenance-table td {
    color: var(--text-primary); /* Ensure table text is light gray */
}

.maintenance-table td.bill-image span {
    color: var(--text-primary); /* N/A text in bill-image column */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .maintenance-table {
        font-size: 14px;
    }
    .btn-neon {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .maintenance-table {
        font-size: 12px;
    }
}