﻿/* Base layout styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar styles */
.sidebar {
    width: 280px;
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all 0.3s;
    border-right: 1px solid #dee2e6;
    
}

.sidebar-collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1.25rem;
    transition: font-size 0.3s ease; /* Add this line */
}

    .sidebar .nav-link.active {
        color: #0d6efd;
    }

    .sidebar .nav-link:hover {
        color: #0a58ca;
    }

    .sidebar .nav-link i {
        margin-right: 10px;
    }

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    color: #6c757d;
}


/* Main content styles */
.main-content {
    margin-left: 280px;
    padding: 20px;
    padding-top: 76px;
    flex: 1;
    transition: margin-left 0.3s;
}

.main-content-expanded {
    margin-left: 0;
}

.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}

.footer {
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.sidebar-toggle {
    display: none;
}

/* Additional styles for collapsible sidebar menus */
.sidebar .nav-link[data-bs-toggle="collapse"] {
    position: relative;
    cursor: pointer;
}

    .sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
        transition: transform 0.3s;
    }

.sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(-180deg);
}

.sidebar .collapse {
    transition: all 0.3s ease;
}

    .sidebar .collapse .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .collapse .nav-link i {
            /*font-size: 0.85rem;*/
        }

/* Dark mode specific styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #e9ecef;
}

    [data-bs-theme="dark"] .sidebar,
    html[data-bs-theme="dark"] .sidebar {
        background-color: #1e1e1e !important;
        border-right-color: #2c2c2c !important;
    }

        [data-bs-theme="dark"] .sidebar .nav-link {
            color: #e9ecef !important;
        }

            [data-bs-theme="dark"] .sidebar .nav-link:hover {
                color: #ffffff !important;
                background-color: rgba(255, 255, 255, 0.1);
            }

    [data-bs-theme="dark"] .sidebar-heading {
        color: #adb5bd !important;
    }

    [data-bs-theme="dark"] .navbar {
        background-color: #1e1e1e !important;
        border-bottom-color: #2c2c2c !important;
    }

    [data-bs-theme="dark"] .navbar-light .navbar-brand,
    [data-bs-theme="dark"] .navbar-light .navbar-text,
    [data-bs-theme="dark"] .navbar-light .nav-link {
        color: #e9ecef !important;
    }

    [data-bs-theme="dark"] .footer {
        background-color: #1e1e1e;
        border-top-color: #2c2c2c;
        color: #e9ecef !important;
    }

    [data-bs-theme="dark"] .card {
        background-color: #242424;
        border-color: #2c2c2c;
    }

    [data-bs-theme="dark"] .card-title,
    [data-bs-theme="dark"] .card-text,
    [data-bs-theme="dark"] h1,
    [data-bs-theme="dark"] h2,
    [data-bs-theme="dark"] h3,
    [data-bs-theme="dark"] h4,
    [data-bs-theme="dark"] h5,
    [data-bs-theme="dark"] h6,
    [data-bs-theme="dark"] p {
        color: #e9ecef !important;
    }

    [data-bs-theme="dark"] .list-group-item {
        background-color: #242424;
        border-color: #2c2c2c;
        color: #e9ecef;
    }

    /* Ensure all sidebar elements follow dark theme */
    [data-bs-theme="dark"] .sidebar * {
        color-scheme: dark;
    }

    /* Target any potential Bootstrap background classes */
    [data-bs-theme="dark"] .bg-light,
    [data-bs-theme="dark"] .sidebar.bg-light {
        background-color: #1e1e1e !important;
    }

    [data-bs-theme="dark"] .navbar {
        background-color: #1e1e1e !important;
        border-bottom-color: #2c2c2c !important;
    }

    [data-bs-theme="dark"] .footer {
        background-color: #1e1e1e;
        border-top-color: #2c2c2c;
    }

    [data-bs-theme="dark"] .card {
        background-color: #242424;
        border-color: #2c2c2c;
    }

    [data-bs-theme="dark"] .list-group-item {
        background-color: #242424;
        border-color: #2c2c2c;
    }

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
        top: 56px;
    }

        .sidebar.show {
            left: 0;
        }

    .main-content {
        margin-left: 0;
        padding-top: 76px;
    }

    .sidebar-toggle {
        display: block;
    }
}

/* Theme toggle button transition effect */
#themeToggle i {
    transition: transform 0.3s;
}

#themeToggle:hover i {
    transform: rotate(30deg);
}

/* Compact audio player styles */
.compact-audio {
    height: 30px;
    width: 100%;
    max-width:250px;
}

/* Make Kendo Grid rows more compact */
.k-grid tr {
    line-height: 1.2;
}

/* Override Kendo Grid cell padding */
.k-grid td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Custom styles for audio controls in WebKit browsers (Chrome, Safari, etc.) */
audio.compact-audio::-webkit-media-controls-panel {
    background-color: rgba(248, 249, 250, 0.7);
}
audio.compact-audio::-webkit-media-controls-play-button {
    background-color: rgba(233, 236, 239, 0.8);
    border-radius: 50%;
}
audio.compact-audio::-webkit-media-controls-timeline {
    height: 4px;
    margin-top: -2px;
}
audio.compact-audio::-webkit-media-controls-current-time-display,
audio.compact-audio::-webkit-media-controls-time-remaining-display {
    font-size: 10px;
}

/* Support for dark mode with audio player */
[data-bs-theme="dark"] audio.compact-audio::-webkit-media-controls-panel {
    background-color: rgba(30, 30, 30, 0.7);
}

[data-bs-theme="dark"] audio.compact-audio::-webkit-media-controls-play-button {
    background-color: rgba(44, 44, 44, 0.8);
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    .compact-audio {
        height: 28px;
    }
}

/* Additional Kendo grid styling for better appearance */
.k-grid {
    border-color: #dee2e6;
    border-radius: 0.25rem;
}
.k-grid-header {
    background-color: #f8f9fa;
}
[data-bs-theme="dark"] .k-grid {
    border-color: #2c2c2c;
}
[data-bs-theme="dark"] .k-grid-header {
    background-color: #1e1e1e;
}
/* Fix for Kendo UI grid command buttons alignment */
.k-grid td .k-button {
    margin: 0 2px;
    padding: 3px 8px;
}
/* Custom styles for login page */
.login-card {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .login-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(-5px);
    }

.login-header {
    text-align: center;
    padding-bottom: 1.5rem;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

    .login-logo:hover {
        transform: scale(1.05);
    }

.login-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    }

.btn-login {
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6c757d;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .login-divider span {
        padding: 0 10px;
        font-size: 0.85rem;
    }

.forgot-link {
    color: #6c757d;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #007bff;
    }

/* For dark mode compatibility */
[data-bs-theme="dark"] .login-card {
    background-color: #2b2b2b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .login-title {
    color: #e9ecef;
}

[data-bs-theme="dark"] .login-subtitle {
    color: #adb5bd;
}

[data-bs-theme="dark"] .form-control {
    background-color: #333;
    border-color: #444;
    color: #e9ecef;
}

    [data-bs-theme="dark"] .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

/* Animation for the login card */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-login {
    animation: fadeIn 0.5s ease-out forwards;
}
/* Styles for the detail template in the outbound dashboard */
.detail-section {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.detail-table th {
    width: 30%;
    font-weight: 600;
}

.detail-table td {
    vertical-align: middle;
}

/* Make the row with details have a different background */
.k-detail-row {
    background-color: #f8f9fa;
}

/* Add hover effect to make rows look clickable */
.k-grid tr:not(.k-state-selected):hover {
    background-color: rgba(0,0,0,0.05);
    cursor: pointer;
}
.glow-button {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6), 0 0 20px rgba(0, 123, 255, 0.4);
    transition: box-shadow 0.3s ease-in-out;
}

.glow-button:hover {
        box-shadow: 0 0 12px rgba(0, 123, 255, 0.8), 0 0 24px rgba(0, 123, 255, 0.6);
    }
/* Override toastr styles for better visibility in light mode */
.toast-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.toast-error {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.toast-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
}

.toast-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.toast {
    opacity: 1 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.toast-title {
    font-weight: 600;
}

.toast-message {
    font-weight: 500;
}
.k-toolbar .k-input, .k-toolbar .k-picker {
    width: 20em;
}

.k-input-solid {
    border-color: rgb(39 215 69 / 38%);
    color: rgb(21 15 94 / 87%);
    background-color: #efecec;
}

.k-spacer, .k-flex {
    flex: auto 0 0;
}	