/* Custom styles for OTrade Bot application with dark theme */

/* General body styles */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
}

/* Cards */
.card.bg-dark-subtle {
    background-color: #2a2a2a !important;
    border: 1px solid #3a3a3a;
}
.card.border-light {
    border-color: #5a5a5a !important;
}

/* Text visibility improvements */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff;
}
.text-light {
    color: #f0f0f0 !important;
}
.text-primary {
    color: #007bff !important;
}

/* Tables */
.table-dark {
    background-color: #2a2a2a;
}
.table-dark th {
    background-color: #3a3a3a;
    color: #ffffff;
}
.table-dark td {
    border-color: #3a3a3a;
    color: #e0e0e0;
}
.table-dark.table-hover tbody tr:hover {
    background-color: #3a3a3a;
}

/* Responsive table container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    min-width: 600px; /* Ensures table has enough width for content */
}

/* Forms */
.form-control.bg-dark {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #3a3a3a;
}
.form-control.bg-dark:focus {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}
.btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
}
.nav-link.btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #ffffff !important;
}

/* Navbar */
.navbar-dark.bg-dark-subtle {
    background-color: #2a2a2a !important;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}
.alert-success {
    background-color: #1a3c34;
    color: #4caf50;
    border-color: #4caf50;
}
.alert-danger {
    background-color: #3c1a1a;
    color: #f44336;
    border-color: #f44336;
}

/* Footer */
footer.bg-dark-subtle {
    background-color: #2a2a2a !important;
}
footer a {
    color: #f0f0f0;
    text-decoration: none;
}
footer a:hover {
    color: #007bff;
    text-decoration: underline;
}
footer .footer-link {
    color: #007bff;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(0, 123, 255, 0.1);
    transition: background-color 0.3s ease;
}
footer .footer-link:hover {
    background-color: rgba(0, 123, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }
    .table-responsive {
        margin: 0 -1rem; /* Offset card padding for full-width scrolling */
    }
}

/* Navbar Logo */
.navbar-logo {
    height: 2.0em; /* Matches the font size of navbar-brand (adjust as needed) */
    width: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the logo fits without distortion */
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .navbar-logo {
        height: 2.0em; /* Slightly smaller for smaller screens */
    }
}

/* Login Page Logo */
.login-logo {
    height: 2rem; /* Matches the font size of h2 (approx. 2rem in Bootstrap) */
    width: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the logo fits without distortion */
}

/* Responsive adjustments for login logo */
@media (max-width: 768px) {
    .login-logo {
        height: 1.5rem; /* Slightly smaller for smaller screens */
    }
}
