﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.box-shadow {
    box-shadow: 0 .25rem .75rem var(--shadow, rgba(0, 0, 0, .05));
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    background-color: var(--primary-bg, #ffffff);
    color: var(--primary-text, #212529);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px; /* Vertically center the text there */
    background-color: var(--secondary-bg, #f8f9fa);
    color: var(--secondary-text, #6c757d);
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.visited {
    color: var(--success-color, #28a745);
}

.container {
    width: 100%;
}

/* Logo and branding */
.logo {
    color: #443788 !important;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 0.07em;
    font-weight: 400;
}

[data-theme="dark"] .logo {
    color: var(--accent-color) !important;
}

/* Login button styling */
.loginButton {
    color: #443788;
    cursor: pointer;
    font-size: 16px;
    font-style: normal;
    font-weight: 500 !important;
    max-width: 180px;
}

[data-theme="dark"] .loginButton {
    color: var(--primary-text);
}

/* Clock styling */
.clock {
    color: #9b70ff !important;
    max-width: 75%;
    margin-left: 10px;
}

[data-theme="dark"] .clock {
    color: var(--accent-color) !important;
}

.clock-label {
    font-weight: 500;
    background-color: var(--secondary-bg, #f8f9fa);
    color: var(--primary-text, #212529);
    border-color: var(--border-color, #ced4da);
}

/* Subtitle styling */
.sub-title {
    color: #443788 !important;
    font-family: Roboto;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
}

[data-theme="dark"] .sub-title {
    color: var(--primary-text) !important;
}

/* Main content block */
.main-block {
    margin-left: 20px !important;
}

/* Required field indicator */
.required::after {
    content: "*";
    font-weight: bold;
    color: var(--danger-color, red);
}

/* Notification container styling */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

#notification-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 18px;
    color: var(--accent-color, #007bff);
    transition: transform 0.2s;
}

.notif-badge {
    background-color: var(--danger-color, red);
    color: white;
    padding: 3px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    display: none;
}

.new-notif-badge {
    background-color: var(--success-color, green);
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    position: absolute;
    right: 20px;
    top: 40px;
}

.notification-time {
    font-style: italic;
    color: var(--secondary-text, grey);
    position: absolute;
    right: 15px;
}

.notification-list {
    inset: unset;
    right: 20px;
    top: 50px;
    width: 400px;
    background-color: var(--primary-bg, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-color, #ddd);
    box-shadow: 0 8px 16px var(--shadow, rgba(0, 0, 0, 0.2));
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    color: var(--primary-text, #212529);
}

.notification-item {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid var(--border-color, #ddd);
    cursor: pointer;
    word-wrap: break-word;
    color: var(--primary-text, #212529);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: var(--secondary-bg, #f5f5f5);
}

.notification-item:hover {
    background-color: var(--tertiary-bg, #eaeaea);
}

@keyframes buzz {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.buzzing {
    animation: buzz 0.5s ease-in-out;
}

.notification-center-link {
    display: block;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color, #ddd);
    background-color: var(--tertiary-bg, #f8f8f8);
    color: var(--primary-text, #212529);
}

/* Toast styling */
#toast-container {
    position: fixed;
    top: 20px;
    right: -350px; 
    width: 350px; 
    z-index: 1002;
    transition: right 0.5s ease-out;
}

.toast {
    background-color: var(--primary-bg, #ffffff);
    color: var(--primary-text, #333);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px var(--shadow, rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-color, #ddd);
    opacity: 0;
    transition: opacity 0.5s ease-in;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}

/* Enhanced transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Override transitions for specific elements that shouldn't have them */
.toast, 
.tooltip, 
.popover, 
.modal-backdrop,
.notification-item,
#notification-btn {
    transition: none !important;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --primary-text: #ffffff;
        --secondary-text: #cccccc;
    }
}

/* Print styles */
@media print {
    .theme-toggle,
    #notification-container,
    #toast-container {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .navbar,
    .footer {
        background-color: white !important;
        color: black !important;
    }
}

/* ============================================
   CALL ANALYZER VIEW - CSS CLASS DEFINITIONS
   These are optional CSS classes that can be used
   instead of inline styles. They do NOT override
   inline styles in light mode.
   ============================================ */

/* Test case row classes (for optional use) */
.test-case-failed {
    background-color: #ffe5e5;
    color: #212529;
}

.test-case-passed {
    background-color: #e5ffe5;
    color: #212529;
}

/* Status text classes (for optional use) */
.status-failed {
    color: #dc3545;
    font-weight: bold;
}

.status-passed {
    color: #28a745;
    font-weight: bold;
}

/* ============================================
   END CALL ANALYZER VIEW CSS CLASSES
   ============================================ */