﻿html {
  font-size: 14px;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.75); /* halbtransparenter Weißton */
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px); /* Glass-Effekt */
    -webkit-backdrop-filter: blur(6px); /* für Safari */
    margin: 2rem auto;
    width: 95%;
    overflow-x: auto;
}

.chart-container {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100% !important;
    height: 100% !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.layout-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 60px;
}

.main-page {
    flex: 1;
    position: absolute;
    overflow-y: auto;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 60px;
    background-image: url('/images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.main-page:not(.with-background) {
    background-image: none !important;
}

header {
    flex-shrink: 0;
    z-index: 10;
}

footer {
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

nav.navbar {
    margin-bottom: 0 !important;
    width: 100%;
}

input.readonly-checkbox {
    pointer-events: none;
}

.stats-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.stats-table th,
.stats-table td {
    border: 1px solid #ccc;
    text-align: center;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

.stats-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#chatList {
    list-style-type: none;
    float: left;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.85); /* halbtransparenter Weißton */
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px); /* Glass-Effekt */
    -webkit-backdrop-filter: blur(6px); /* für Safari */
    margin: 2rem auto;
}

#chatCenter
{
    flex: 1 1 auto;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
}

#chatList ul, #chatList li{
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#newChatPopup, #groupChatSettingsPopup, #singleChatSettingsPopup {
    position: fixed;
    left: 33%;
    right: 33%;
    width: 30%;
    height: auto;
    padding: 1%;
    display: none;
}

.chatOverlay {
    position: absolute; /* Stay in place */
    z-index: 1; /* Sit on top */
    margin: 0;
    padding: 0;
    top: 57px;
    left: 0;
    width: 100%;
    bottom: 57px;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    overflow-y: auto;

    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

body.overlay-open {
    overflow-y: hidden;
}

#messageInput
{
    position: fixed;
    bottom: 10%;
    width: 100%;
    top: 50%;
}

#messageList
{
    position: fixed;
    bottom: 50%;
    width: 100%;
    top: 0px;
}

#sendButton
{
    position: fixed;
    bottom: 0%;
    width: 100%;
    top: 90%;
}



@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-page {
        top: 45px;
        overflow-y: scroll;
    }

    .stats-table {
        font-size: 0.8rem;
        min-width: 100%;
    }
}
/* Dashboard Refinements */
.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.dashboard-stat-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0.5rem;
}

.modern-table-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-x: auto;
    margin-bottom: 2rem;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.modern-table th {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid #dee2e6;
}

.modern-table td {
    padding: 1rem;
    background: #fff;
    vertical-align: middle;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-table tr:hover td {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

.modern-table tr td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    font-weight: 600;
    color: #495057;
    text-align: left;
    padding-left: 1.5rem;
}

.modern-table tr td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Row Accents */
.row-given td:first-child {
    border-left: 4px solid #90caf9; /* Soft Blue */
}

.row-received td:first-child {
    border-left: 4px solid #ef9a9a; /* Soft Red */
}

.row-action td {
    background: transparent;
    box-shadow: none;
    padding: 0;
}
.row-action:hover td {
    transform: none;
    box-shadow: none;
}

