@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== Theme variables ===== */
:root {
    --light-bg-primary: #f8fafc;
    --light-bg-secondary: #ffffff;
    --light-bg-tertiary: #e2e8f0;
    --light-bg-quartnery: #d4dde8;
    --light-bg-tertiary-hover-color: #cbd5e1;
    --light-text-primary: #1e293b;
    --light-text-secondary: #64748b;
    --light-border-color: #e2e8f0;
    --light-hover-color: #f1f5f9;
    --light-card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --light-scrollbar-thumb-color: #dfdfdf;

    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-bg-tertiary: #334155;
    --dark-bg-quartnery: #64748b;
    --dark-bg-tertiary-hover-color: #475569;
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #94a3b8;
    --dark-border-color: #334155;
    --dark-hover-color: #152238;
    --dark-card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --dark-scrollbar-thumb-color: #666666;


    --accent-primary: #6366f1;
    --accent-secondary: #818cf8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    --sidebar-width: 280px;
    --header-height: 70px;
    --transition-speed: 0.3s;
}

/* ===== Theme classes ====== */
.light {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --bg-tertiary: var(--light-bg-tertiary);
    --bg-quartnery: var(--light-bg-quartnery);
    --bg-tertiary-hover-color: var(--light-bg-tertiary-hover-color);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --border-color: var(--light-border-color);
    --hover-color: var(--light-hover-color);
    --card-shadow: var(--light-card-shadow);
    --scrollbar-thumb-color: var(--light-scrollbar-thumb-color);
}

.dark {
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --bg-quartnery: var(--dark-bg-quartnery);
    --bg-tertiary-hover-color: var(--dark-bg-tertiary-hover-color);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --border-color: var(--dark-border-color);
    --hover-color: var(--dark-hover-color);
    --card-shadow: var(--dark-card-shadow);
    --scrollbar-thumb-color: var(--dark-scrollbar-thumb-color);
}

/* ===== Global styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", serif;
}

::selection {
    background-color: #7469d1;
    color: #ffffff;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color var(--transition-speed);
    overflow: auto;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* Prevents unwanted scrolling */
    touch-action: manipulation;
    /* Improves touch behavior */
}

body {
    position: relative;
    overflow-y: auto;
    /* Enable only vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* ===== Layout container ===== */
.layout-container {
    display: flex;
    min-height: 100svh;
    overflow-x: auto;
}

.subject i.goRight {
    color: var(--text-primary);
    width: 46px;
    height: auto;
    user-select: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 1rem;
    transform-origin: center;
    /* Ensures rotation happens around the center */
}

.subject i.rotate {
    transform: rotate(90deg);
    /* Rotate by 90 degrees */
}

/* ===== sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    position: fixed;
    height: 100vh;
    z-index: 8888;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Chatbar Styles */
.chatbar {
    width: 100%;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    position: fixed;
    height: 100vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.2),
        0px -4px 8px rgba(0, 0, 0, 0.2),
        0px 4px 8px rgba(0, 0, 0, 0.2);
    right: 0;
    transform: translateX(100%);
}

.chatbar.splited {
    height: calc(98vh - var(--header-height));
    margin-top: calc(var(--header-height) + 1vh);
    margin-right: .5vh;
    margin-left: .5vh;
    border-radius: .5rem;
}

.chatbar.onLeft {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

.chatbar.chatbar-active {
    transform: translateX(0);
    overflow: hidden !important;
}

.no-scroll {
    overflow: hidden !important;
}

.buttons_button {
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    outline: none;
    border: none;
}

.buttons_button#cancelIncognito {
    display: flex;
    align-items: center;
    gap: .5rem;
    border-radius: 1rem;
    padding: 0.5rem;
    align-self: center;
}

.buttons_button#cancelIncognito:hover {
    background-color: var(--hover-color);
}

.moveChatBarLeft {
    transform: rotate(180deg);
    user-select: none;
}

/* ===== logo styles ===== */
.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    margin-bottom: 2.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    font-size: 2rem;
    user-select: none;
    background-color: transparent;
}

.logo-text {
    font-weight: 800;
    font-size: 1.75rem;
    color: #7469d1;
    user-select: none;
    background-color: transparent;
}

/* Menu section styles */
.menu-section {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.menu-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: .5rem .75rem;
    font-weight: 600;
    user-select: none;
}

.menu-section span {
    user-select: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 1rem;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.menu-item:hover {
    background: var(--hover-color);
    transform: translateX(8px);
    box-shadow: 4px 4px 10px rgba(99, 102, 241, 0.1);
    border-right: 3px solid var(--accent-primary);
}

.menu-item.active {
    background: linear-gradient(135deg,
            var(--accent-primary),
            var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.menu-item i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

/*  bannner  */
.banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    row-gap: 1rem;
}

.banner .banner-head {
    width: 100%;
    border-bottom: 1px solid var(--text-primary);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    column-gap: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
}

.banner .banner-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    row-gap: 1rem;
    padding-left: 1rem;
    padding-bottom: 1rem;
}

.bannerBorder {
    border-bottom: 1px solid var(--text-primary);
}

.banner .banner-body .dateSection .date,
.banner .banner-body #idetifier {
    font-weight: 600;
}

.banner .banner-body .dateSection #downloadDate {
    font-weight: normal !important;
}

/* ===== content wrapper styles ===== */
.content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--bg-secondary);
    transition: margin-left var(--transition-speed);
    z-index: 999;
}

/* ===== header styles ===== */
.header {
    width: calc(100% - var(--sidebar-width));
    height: var(--header-height);
    background: var(--bg-secondary);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: var(--card-shadow);
}

.header.notSignedInHeader {
    width: 100%;
}

.chatbar-header {
    width: 100%;
    height: var(--header-height);
    background: var(--bg-secondary);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--card-shadow);
}

.chat-section .chat-section-header {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    margin-right: 1rem;
    margin-left: 1rem;
}

.chat-section .chat-section-header .credit-detailes .credit-numbers {
    display: flex;
    align-items: center;
}

.history-section {
    display: flex;
    padding: .5rem;
    border-radius: .5rem;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    margin: 1rem;
    background-color: var(--bg-quartnery);
    text-wrap: nowrap;
}

.name-section {
    padding: .5rem;
    border-radius: .5rem;
    cursor: pointer;
}

.history-section:hover,
.name-section:hover {
    background-color: var(--bg-tertiary-hover-color);
}

.header-left {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}

.dashboard-header,
.analytics-header,
.bookmarks-header,
.settings-header {
    justify-content: start;
    gap: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7469d1;
    user-select: none;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #7469d1;
    user-select: none;
}

.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.user-image img {
    width: 100%;
    height: 100%;
    transition: all var(--transition-speed);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle,
.sidebar-close,
.sidebar-toggle,
.sidebar-toggle-dashboard,
.sidebar-toggle-analytics,
.sidebar-toggle-bookmarks,
.sidebar-toggle-settings,
.sidebar-toggle-shortcuts,
.fa-bell,
.fa-message,
.chatbar-close {
    padding: 0.75rem;
    border-radius: .75rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    background: var(--hover-color);
    outline: none;
    border: none;
}

.notAllowed {
    padding: 0.75rem;
    border-radius: .75rem;
    cursor: auto;
    opacity: .5;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    background: var(--hover-color);
    outline: none;
    border: none;
}

.sidebar-close,
.sidebar-toggle,
.sidebar-toggle-analytics,
.sidebar-toggle-dashboard,
.sidebar-toggle-bookmarks,
.sidebar-toggle-settings,
.sidebar-toggle-shortcuts {
    display: none;
    cursor: pointer;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.sidebar.sidebar-active {
    transform: translateX(0);
}

.sidebar-toggle:hover,
.sidebar-close:hover,
.sidebar-toggle-dashboard:hover,
.sidebar-toggle-analytics:hover,
.sidebar-toggle-bookmarks:hover,
.sidebar-toggle-settings:hover,
.sidebar-toggle-shortcuts:hover,
.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.fa-bell:hover,
.user-image img:hover {
    transform: scale(1.1);
}

.sub-header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    text-wrap: nowrap;
}

.sub-header-buttons button {
    padding: .5rem 1.5rem;
    border: none;
    outline: none;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.sub-header-buttons #loginHeader {
    color: #ffffff;
    background: #7469d1;
}

/* Style for the loading spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #ef4444;
    border-left: 3px solid #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    visibility: hidden;
    display: none;
}

.loading-spinner#loadingSpinnerForDelete {
    border-color: #7469d1;
}

/* Animation for the spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* To show the spinner when needed */
.show-spinner {
    visibility: visible;
    display: block;
}

.startDiv {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.startDiv .startBtn {
    display: block;
    padding: .5rem 1.5rem;
    border: none;
    outline: none;
    border-radius: 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
    background: #7469d1;
    transition: transform .2s;
}

.startDiv .startBtn:hover {
    background-color: #5e4bb3;
    transform: scale(1.01);
}

/* ===== settings styles ===== */
.settings-controls {
    margin-top: var(--header-height);
    padding: 2rem;
}

.settings-body {
    width: 100%;
    height: calc(100% - var(--header-height));
    margin-top: var(--header-height);
    padding: 2.5rem;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.development-banner {
    background-color: var(--bg-primary);
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border-radius: 8px;
}

.development-banner h2 {
    font-size: 24px;
    color: #ff6f61;
    /* Color for the title */
    margin-bottom: 10px;
}

.development-banner p {
    font-size: 16px;
    color: #555;
    /* Darker text for the description */
    margin-bottom: 0;
}


/* Main contents styles */
.main-content {
    margin-top: var(--header-height);
    padding: 2rem;
}

*::-webkit-scrollbar {
    width: .5rem !important;
    box-shadow: none;
    height: calc(100% - var(--header-height));
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    border-radius: 1rem;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #bfbfbf;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stats-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
}

.stats-card #dateSpan {
    display: block;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 1rem 0;
    color: var(--text-secondary);
    transform: translateY(.625rem);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stats-info {
    flex: 1;
}

.stats-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #7469d1;
    margin-bottom: 1rem;
}

.stats-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background-color: var(--hover-color);
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.stats-footer {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.stats-change {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .875rem;
    padding: .375rem .75rem;
    border-radius: .75rem;
    font-weight: 5000;
}

.stats-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stats-change.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stats-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.previous-stats {
    color: var(--text-secondary);
}

/* ===== Chart section styles ===== */
.chart-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
}

.chart-header,
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-title,
.table-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chart-container {
    height: 400px;
    position: relative;
}

.full-report {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    border-radius: .5rem;
    padding: .75rem;
    cursor: pointer;
}

.full-report h5 {
    user-select: none;
    pointer-events: none;
}

.full-report:hover {
    background-color: #f0f0f0;
}



/* ===== table section styles ===== */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 .75rem;
}

.result-table th {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .05rem;
}

.result-table td {
    padding: 1.2rem 1rem;
    background: var(--hover-color);
    border: none;
}

.result-table tbody tr .delete-result {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    font-size: 1rem;
    border-radius: 50%;
    margin: .5rem;
    padding: .5rem;
    cursor: pointer;
}

.result-table tbody tr .delete-result:hover {
    background-color: var(--hover-color);
}

.result-table tr td:first-child {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.result-table tr td:last-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.result-table tr td {
    text-align: center;
}

.pass-status {
    padding: .5rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.pass-status.passed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.pass-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Shortcuts Section Styles */
.shortcuts-container {
    margin-top: var(--header-height);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.shortcuts-card {
    display: none;
    width: 70%;
    background-color: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3.5rem;
    font-size: 16px;
    color: var(--text-primary);
}

.shortcuts-title {
    font-size: 22px;
    color: #7469d1;
    font-weight: bold;
    margin-bottom: 10px;
}

.shortcut-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.shortcut-item .shortcut-key {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .5rem;
    padding: .5rem;
}

.shortcut-item .shortcut-key span {
    height: auto;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    font-size: 1rem;
}

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

.shortcut-desc {
    flex: 1;
    margin-left: 15px;
    color: var(--text-secondary);
}

/* error */
.error-notification {
    position: fixed;
    width: 500px;
    height: auto;
    padding: 1rem;
    top: 150px;
    right: 30px;
    background: #ef4444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: .5rem;
    margin-top: 3rem;
    font-size: 1rem;
    transform: translateX(-50%) translateY(-100%) scale(0.01);
    opacity: 0;
    transition: all ease-in .3s;
    z-index: 1000;
}

.error-notification .inner {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

.error-notification span {
    font-weight: 500;
    text-wrap: wrap;
    text-align: start;
}

.error-notification.shown {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.error-notification #iTag {
    padding: .5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform ease-in .2s;
}

.error-notification #iTag:hover {
    transform: scale(1.2);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 310px;
    }

    .header {
        width: 100%;
    }

    .sidebar-toggle,
    .sidebar-close,
    .sidebar-toggle-niv,
    .sidebar-toggle-dashboard,
    .sidebar-toggle-analytics,
    .sidebar-toggle-bookmarks,
    .sidebar-toggle-settings,
    .sidebar-toggle-shortcuts {
        display: block;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .shortcuts-card {
        width: 90%;
        font-size: .9rem;
        flex-wrap: wrap;
        text-wrap: nowrap;
    }

    .error-notification {
        width: 90%;
        right: 40px;
    }

    .error-notification {
        width: 500px;
        top: 600px;
        right: 300px;
    }
}

@media (max-width: 1024px) and (max-height: 600px) {
    .error-notification {
        top: 25px;
    }
}

@media (max-width: 912px) {
    .error-notification {
        right: 250px;
    }
}

@media (max-width: 853px) {
    .error-notification {
        right: 200px;
    }
}

@media (max-width: 820px) {
    .error-notification {
        right: 200px;
    }
}

@media (max-width: 768px) {
    .error-notification {
        width: 500px;
        top: 630px;
        right: 180px;
    }

    .main-content {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }

    .result-table th {
        display: none;
    }

    .result-table td {
        display: block;
        padding: 1rem 0;
    }

    .result-table tr td {
        padding: 1rem 0;
        box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
    }

    .result-table tr td:first-child {
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 0;
        border-top-right-radius: 1rem;
        margin-bottom: 10px;
        border: 1px solid var(--accent-primary);
    }

    .result-table tr td:nth-child(2) {
        border-top: 1px solid var(--accent-primary);
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: none;
    }


    .result-table tr td:nth-child(3) {
        border-top: none;
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: none;
    }

    .result-table tr td:nth-child(4) {
        border-top: none;
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: none;
    }

    .result-table tr td:nth-child(5) {
        border-top: none;
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: none;
    }

    .result-table tr td:nth-child(6) {
        border-top: none;
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: none;
    }

    .result-table tr td:last-child {
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        border-top-right-radius: 0;
        margin-bottom: 10px;
        border-top: none;
        border-right: 1px solid var(--accent-primary);
        border-left: 1px solid var(--accent-primary);
        border-bottom: 1px solid var(--accent-primary);
    }

    .chart-section {
        padding: 1rem;
    }

    .chart-header {
        flex-direction: column;
        text-align: center;
    }

    .chart-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .chart-container {
        height: 250px;
        /* Further reduce the chart height for smaller screens */
    }

    .full-report {
        margin-top: 0.5rem;
    }
}

@media (max-width: 700px) {
    .error-notification {
        right: 150px;
    }
}

@media (max-width: 670px) {
    .error-notification {
        right: 140px;
    }
}

@media (max-width: 640px) {
    .error-notification {
        right: 130px;
    }
}

@media (max-width: 600px) {
    .error-notification {
        right: 100px;
    }
}

@media (max-width: 570px) {
    .error-notification {
        right: 85px;
    }
}

@media (max-width: 540px) {
    .error-notification {
        right: 65px;
        top: 650px;
    }
}

@media (max-width: 540px) and (max-height: 720px) {
    .error-notification {
        right: 70px;
        top: 25px;
    }
}

@media (max-width: 520px) {
    .error-notification {
        right: 55px;
    }
}


@media (max-width: 500px) {

    .chat-container {
        font-size: .8rem !important;
    }

    .header.notSignedHeader {
        overflow-x: hidden;
        flex-wrap: wrap;
        align-items: center;
        justify-content: start;
        text-align: center;
        height: 150px;
    }

    .sub-header-buttons {
        font-size: .85rem;
        padding: .5rem 1rem;
    }

    .header-actions {
        gap: .85rem;
    }

    .theme-toggle,
    #sidebarToggle {
        margin-left: 1rem;
    }

    .main-content.notSignedIn {
        margin-top: calc(var(--header-height) + 50px);
    }

    .error-notification {
        width: 90%;
        right: 20px;
        top: 700px;
    }

    /* .error-notification.ifNotSignedIn {
        top: 120px;
    } */
}

@media (max-width: 480px) {
    .chart-title {
        font-size: 1rem;
    }

    .chart-container {
        height: 250px;
    }

    .chart-section {
        padding: 1rem;
    }

    .sound-card {
        width: 95%;
    }

    .volume-percentage {
        font-size: .9rem;
    }

    .sound-control label {
        font-size: .9rem;
    }

    .mute-control i {
        font-size: .9rem;
    }

    .volume-control {
        height: 4px;
    }

    .sound-control {
        gap: .625rem;
    }

    .volume-handle {
        width: 10px;
        height: 10px;
        top: -3px;
    }

    .selected-calc-text {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .error-notification {
        top: 750px;
    }
}

@media (max-width: 425px) {
    .error-notification {
        top: 120px;
    }
}