/* Material Design inspired overrides for workpipe.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
:root {
    --primary: #2E378D;
    --primary-light: #AEB2DA;
    --surface: #ffffff;
    --background: #f3f4f6;
    --text-primary: #000000;
    --text-secondary: #696969;
    --border: #e5e7eb;
    --error: #fee2e2;
    --success-color: #14A44D;
    --error-color: #DC4C64;
    --warning-color: #E4A11B;
    --menu-width: 201px;
    --text-shadow : 1px 1px 2px #5454544f;
    
    /* Material Design shadows */
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

/* Base layout */
#maincontainer {
    width: 95% !important;
    max-width: 1600px !important;
    margin: 0 auto;
    background: var(--background);
    min-height: 100vh;
    position: relative;
}

/* Menu layout */
#leftcolumn {
    float: left;
    width: var(--menu-width);
    margin-left: -100%;
    background: var(--primary-light);
    min-height: 800px;
}

#contentwrapper {
    float: left;
    width: 100%;
    background: var(--primary-light);
}

/* Main content area */
#content {
    margin-left: var(--menu-width);
    padding: 24px;
    background: var(--surface);
    min-height: 800px;
}

/* Form layout */
#form {
    margin: 0;
    padding: 0;
}

.form-container {
    margin-bottom: 24px;
}

/* Form elements */
#form label {
    display: block;
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

#form select,
#form input[type="number"],
#form input[type="text"],
#form input[type="password"],
#form input[type="month"],
#form input[type="date"],
#form textarea
 {
    width: 375px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1rem;
    background: var(--surface);
}

#form select:hover,
#form input[type="number"]:hover,
#form input[type="text"]:hover,
#form input[type="password"]:hover
 {
    border-color: var(--primary);
}

#form select:focus,
#form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 55, 141, 0.1);
}

/* Send button styling */
#form input[type="submit"],
button[name="send"] {
    width: 375px;
    height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Round buttons */
.round-buttons {
    display: flex;
    gap: 11px;
    margin-top: 12px;
    width: 375px;
}

.action-buttons button {
    width: 182px;
    height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    background: #8d2e6a;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-buttons button:hover {
    background: #6b2354;
    opacity: 1;
}

/* Hover effects for all buttons */
#form input[type="submit"]:hover {
    background: #1f2563;
    opacity: 1;
}

/* Isolate Player button styling */
button[onclick="handleIsolatePlayer()"] {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-1);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
}

button[onclick="handleIsolatePlayer()"]:hover {
    background: #1f2563;
    opacity: 1;
}

/* Table styling */
#bericht table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

#bericht thead td {
    background: var(--primary);
    color: white;
    padding: 16px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bericht tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    color: var(--text-primary);
}

#bericht-match tbody tr:last-child td {
    border-bottom: none;
}

#bericht-match tbody tr:hover td {
    background: rgba(174, 178, 218, 0.1);
    color: var(--text-primary) !important;
}

#bericht-match tbody tr:hover td a {
    color: var(--text-primary) !important;
}

#bericht-match tbody tr:hover td a:hover {
    color: var(--primary) !important;
}


#bericht-match table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

#bericht thead td {
    background: var(--primary);
    color: white;
    padding: 16px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bericht tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    color: var(--text-primary);
}

#bericht-match tbody tr:last-child td {
    border-bottom: none;
}

#bericht-match tbody tr:hover td {
    background: rgba(174, 178, 218, 0.1);
    color: var(--text-primary) !important;
}

#bericht-match tbody tr:hover td a {
    color: var(--text-primary) !important;
}

#bericht-match tbody tr:hover td a:hover {
    color: var(--primary) !important;
}


#bericht-match thead td {
    background: var(--primary);
    color: white;
    padding: 4px;
    font-weight: 400;
    font-size: 0.750rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bericht-match tbody td {
    padding: 2px 2px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    color: var(--text-primary);
}

/* Alert rows */
.alert-row {
    background-color: var(--error) !important;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 2px;
    border: 2px solid var(--primary);
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Query display */
#queries pre {
    background: var(--surface);
    padding: 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* Menu styling */
#navleft {
    margin: 0;
    padding: 0;
    list-style: none;
}

#navleft li a,
#navleft li p {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navleft li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Player table styles */
.tableplayers {
    font-size: 1rem !important;
    margin-top: 24px;
}

/* Clear floats */
#footer {
    clear: both;
}

/* Utility classes */
.mitte {
    text-align: center;
}

div#manual-pairing-container {
    padding: 1%;
    background: #eeefff;
    border: 1px solid #2e378d;
}

.selected-player {
    background-color: #8d2e6a66;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

.pair-item {
    background-color: #f5f5f5;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-button, .launch-query {
    background-color: #2e388d !important;
    color: white;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 0.8em;
}

.action-button:hover, .launch-query:hover {
    background-color: #1f2563 !important;
}

#manual-pairing-container h4 {
    border-bottom: 0px !important;
    font-size: 1.2em;
    letter-spacing: 0em;
    margin-bottom: 0px;
}

/* Swiss Parameters Box */
.swiss-params-box h2 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 20px 0;
    padding: 0;
}

.swiss-parameters input[type="number"]:hover {
    border-color: var(--primary);
}

.swiss-params-box {
    border: 1px solid var(--border);
    background: #f8f9fa;
    padding: 24px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    width: 90%;
}

.swiss-params-box input[type="number"] {
    width: 100%;
}

.swiss-params-box h2 {
    margin-bottom: 20px !important;
}

/*-------btn-primary-------*/
.btn {
    width: 375px;
    height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-match {
    padding: 2px 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: var(--shadow-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-match a {
    color: white !important;
}
.btn:hover {
    background: #1f2563;
    opacity: 1;
}

/*-------btn-colors--------*/
.btn-error{
    background-color: var(--error-color) !important;
    color: var(--surface) !important;
}

.btn-warning{
    background-color: var(--warning-color) !important;
    color: var(--surface) !important;
}

.btn-success{
    background-color: var(--success-color) !important;
    color: var(--surface) !important;
}

/*----override-tr-hover----*/
#bericht thead tr:hover td a, #bericht tbody tr:hover td a, #bericht tfoot tr:hover td a {
    background: transparent !important;
    color: var(--primary);
    font-weight: 500;
    text-shadow: var(--text-shadow);
    transition: 0.5s text-shadow;
}

#content a, #content a:visited, #content a:hover{
    margin: 0px 2px 0px 2px;
    text-decoration: none;
    font-weight: 500;
}

/* MATCH SCHEDULING CENTER */
.msc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.msc-intro-text {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-left: 4px solid #2e378d;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.msc-intro-text a {
    color: #2e378d;
    text-decoration: none;
}

.msc-intro-text a:hover {
    text-decoration: underline;
}

.msc-header {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-1);
}

.msc-header h2 {
    color: var(--primary);
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.msc-match-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msc-info-row {
    display: flex;
    gap: 12px;
}

.msc-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 100px;
}

.msc-value {
    color: var(--text-primary);
}

/* MESSAGES CONTAINER */
.msc-messages-container {
    margin-bottom: 16px;
}

.msc-no-messages {
    text-align: center;
    color: var(--text-secondary);
    padding: 16px;
    font-style: italic;
    font-size: 0.9rem;
}

/* ==================== MESSAGGI LETTI ==================== */
.msc-read-messages {
    margin-bottom: 8px;
}

.msc-message {
    margin-bottom: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.msc-message-read {
    background: #f9fafb;
    border-left-color: #2e378d;
}

.msc-message-read:hover {
    background: #f3f4f8;
}

.msc-message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: nowrap;
}

.msc-sender-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.msc-message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.msc-message-content {
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
    font-size: 0.85rem;
    display: inline;
    max-width: calc(100% - 200px);
}

/* ==================== MESSAGGI NON LETTI ==================== */
.msc-unread-section {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.msc-unread-label {
    font-weight: 700;
    color: #92400e;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.msc-message-unread {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: #f59e0b;
    padding: 6px 12px;
    border-radius: 3px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.msc-message-unread:last-child {
    margin-bottom: 0;
}

.msc-unread-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.msc-unread-header > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* Eye button */
.msc-eye-button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.msc-eye-button:hover {
    background: rgba(46, 55, 141, 0.15);
    transform: scale(1.1);
}

.msc-eye-button:active {
    transform: scale(0.95);
}

/* Blurred content */
.msc-message-blurred {
    filter: blur(4px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Quando reveal - rimuovi blur */
.msc-message-content:not(.msc-message-blurred) {
    filter: none;
    opacity: 1;
    user-select: text;
    pointer-events: auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .msc-messages-container {
        margin-bottom: 12px;
    }
    
    .msc-message {
        padding: 4px 8px;
        margin-bottom: 2px;
    }
    
    .msc-message-header {
        gap: 6px;
    }
    
    .msc-sender-name {
        font-size: 0.8rem;
    }
    
    .msc-message-time {
        font-size: 0.7rem;
    }
    
    .msc-message-content {
        font-size: 0.8rem;
    }
    
    .msc-unread-section {
        padding: 6px 8px;
        margin-bottom: 12px;
    }
    
    .msc-unread-label {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .msc-unread-header {
        gap: 6px;
    }
    
    .msc-eye-button {
        font-size: 0.9rem;
        padding: 1px 4px;
    }
}



/* Message body content */
.msc-msg-body {
    color: var(--text-primary);
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}



.msc-send-btn {
    align-self: flex-start;
}

.msc-send-btn:hover {
    background: #1f2563;
}

/* Schedule Panel */
.msc-schedule-panel {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-1);
}

.msc-schedule-panel h3 {
    color: var(--primary);
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.msc-info-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* Scheduled match highlight */
.msc-scheduled {
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.msc-highlight {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Alerts */
.msc-alert {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-weight: 500;
}

.msc-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.msc-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

/* Schedule form */
.msc-timezone-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.msc-schedule-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.msc-schedule-inputs {
    display: flex;
    gap: 16px;
}

.msc-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msc-input-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.msc-input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.msc-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 55, 141, 0.1);
}

.msc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msc-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msc-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.msc-radio-option label {
    margin: 0;
    color: var(--text-primary);
    cursor: pointer;
}

.msc-schedule-form .btn:hover {
    background: #1f2563;
}

.msc-clocks-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2e378d;
    border-radius: 8px;
    margin-bottom: 20px;
    gap: 15px;
}

.msc-clock {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.msc-clock-center {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.msc-clock-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.msc-clock-time {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Timezone adjuster styles */
.msc-timezone-adjuster {
    margin-top: 15px;
}

.msc-tz-toggle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-align: center;
    padding: 5px;
    user-select: none;
}

.msc-tz-toggle:hover {
    color: rgba(255, 255, 255, 1);
}

.msc-tz-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.msc-tz-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.msc-timezone-adjuster .msc-tz-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.msc-timezone-adjuster .msc-tz-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

.msc-tz-display {
    text-align: center;
    font-weight: 500;
    color: white;
    padding: 0 8px;
    font-size: 13px;
    min-width: 70px;
}

.msc-timezone-adjuster .msc-tz-save {
    width: auto !important;
    max-width: none !important;
    padding: 6px 12px !important;
    background-color: #2e378d !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.msc-timezone-adjuster .msc-tz-save:hover {
    background-color: #2e378d !important;
    box-shadow: none !important;
}

.msc-sos-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #dc3545;
}

.msc-sos-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.msc-sos-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.msc-sos-text {
    flex: 1;
}

.msc-sos-text h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.msc-sos-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}






.btn-sos {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.btn-sos:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-sos:active {
    transform: translateY(0);
}

/* STATS PROFILE  */
.stats-page {
    background: linear-gradient(135deg, #f8f9fd 0%, #e8ebf7 100%);
    color: #2c3e50;
    min-height: 100vh;
    margin-top: 3vw;
}

.stats-page h1 {
    font-size: 3rem; 
}

.sp-nickname {
    font-size: 1.6rem; 
}

.sp-profile-header {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 auto 24px auto;
    padding-top: 2vw;
    padding-bottom: 2vw;
}

.sp-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-photo-container {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.sp-flag-frame {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background-size: 200% auto;
    background-position: center 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sp-profile-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-main-data {
    width: 80%;
    display: flex;
    gap: 50px;
    margin: 0 auto 12px auto;
    padding-top: 2vw;
    padding-bottom: 0vw;
}

.sp-title-data {
    font-size: 3rem;
    font-weight: 700;
    color: #8495a6;
    line-height: auto;
}

.sp-separator {
    height: 3px;
    margin: 30px auto;
    width: 80%;
    background: linear-gradient(to bottom, #bbb, #ddd, #bbb);
    border-radius: 1.5px;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.2),
        0 1px 0 rgba(255,255,255,0.8);
}

.sp-abstract-data {
    font-size: 1.3rem;
    font-weight: 400;
    color: #8495a6;
    line-height: 1.5em;
}

.sp-quote-data {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.5em;
}

.sp-time {
    font-weight: 400;
    color: #8495a6;
}

/* CHART STYLES */
.chart-container {
    width: 90%;
    max-width: 900px;
    height: 300px;
    margin: 20px auto;
    padding: 10px;
}

.chart-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .msc-container {
        padding: 16px;
    }
    
    .msc-info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .msc-label {
        min-width: auto;
    }
    
    .msc-schedule-inputs {
        flex-direction: column;
    }
    
    .msc-clocks-container {
        flex-direction: column;
    }
    
    .msc-clock {
        width: 100%;
    }
    
    .msc-clock-time {
        font-size: 20px;
    }
    
    .msc-sos-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-sos {
        width: 100%;
    }
    
    .sp-profile-header {
        width: 95%;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .sp-photo-container {
        width: 90px;
        height: 90px;
    }
    
    .sp-flag-frame {
        width: 90px;
        height: 90px;
        padding: 3px;
        background-size: 200% auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .sp-profile-photo {
        width: 82px;
        height: 82px;
    }
}

/* SOS COLLECTOR STYLES */
.sos-collector-header {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-1);
}

.sos-collector-header h2 {
    color: var(--primary);
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.sos-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.sos-matches-panel {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-1);
}

.sos-no-matches {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.sos-no-matches-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 16px;
}

.sos-matches-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sos-matches-table thead td {
    background: var(--primary);
    color: white;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary);
}

.sos-matches-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.sos-matches-table tbody tr:last-child td {
    border-bottom: none;
}

.sos-matches-table tbody tr:hover td {
    background: rgba(174, 178, 218, 0.1);
}

.sos-matches-table .vs-cell {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    width: 40px;
}

.sos-matches-table .nick {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.sos-matches-table .action-cell {
    text-align: center;
    width: 160px;
}

.sos-matches-table .btn-sos-view-small {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 6px 16px;
    border: none !important;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    margin-right: 4px;
}

.sos-matches-table .btn-sos-view-small:hover {
    background-color: #1f2563 !important;
    color: #ffffff !important;
}

.sos-resolve-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sos-matches-table .btn-sos-resolve {
    background-color: var(--success-color) !important;
    color: white !important;
    padding: 6px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s;
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-decoration: none !important;
}

.sos-matches-table .btn-sos-resolve:hover {
    background-color: #0f8039 !important;
}

.sos-flush-panel {
    background: var(--surface);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-1);
    border-left: 4px solid var(--warning-color);
}

.sos-flush-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sos-flush-text h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.sos-flush-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .sos-flush-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sos-matches-table {
        font-size: 0.85rem;
    }
    
    .sos-matches-table thead td,
    .sos-matches-table tbody td {
        padding: 8px 4px;
    }
}

.other-matches {
    background: #f6f6f6;
    padding: 1%;
    width: auto !important;
}

.textclaim {
    font-weight: 500;
    color: black;
    margin: 1% 1% 3% 1%;
}

.stats-container {
    padding: 1em;
    gap: 2em;
    display: flex;
    width: 100%;
}

.stats-table {
    width: 75%
}

.stats-container #bericht .schmal {
    width: 100% !important;
    margin: 0 !important;
}

.photo-container {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo {
    max-width: 18em;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
}

/*.container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.container-forms {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container-select {
    gap: 3em;
    display: flex;
    width: 100%;
}*/

.searchbar-container {
    justify-content: center;
    display: flex;
    width: 100%;
}

.searchbar {
    margin-bottom: unset !important;
    max-width: none !important;
    width: 100% !important
}


.form-select {
    max-width: none;
    display: flex;
    width: 100%;
}

.form-select form {
    width: 100%;
    max-width: none !important;
    display: flex;
    align-items: center;
    flex-direction: column;
}

/*label {
    text-align: center;
    font-weight: bold;
}*/

.year-select,
.group-select {
    width: 100%;
    margin-right: auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.year,
.group {
    max-width: none !important;
    position: relative;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1rem;
    background: #ffffff;
    display: flex !important;
    width: 100% !important;

}



.button-group {
    display: flex;
    justify-content: center;
    gap: 1em;
    width: 100%;
}

/*.input {
    max-width: none !important;
    width: 100%;
    flex: 1;
    border: none;
    background-color: #2e3192;
    color: white;
    padding: 0.75em;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}*/

.form-search {
    width: 100%;
}

.search-tournament {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.search-img-container {
    background-color: white;
    padding: 0.3em;
    display: flex;
    justify-content: center;
    position: absolute;
    margin-left: 78%;
    width: 2em;
    z-index: 10;
}

.search-tournaments-btn {

    cursor: pointer;
}



.searchbar-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.results-tournaments-container {
    margin-bottom: 2em;
    display: flex;
    justify-content: left;
    width: 100%;
}

.results-tournaments {
    width: 40%;
    padding: 5px;
    box-shadow: 5px 10px 8px #888888;
    border: 1px solid;
    background-color: white;
    z-index: 1;
    display: none;
    position: absolute;
    flex-direction: column;
    height: 8em;
    overflow-y: scroll;
    gap: 0.5em;
}

.results-tournaments>.tournament {
    padding: 0.8em;
}

.tournament {
    cursor: pointer;

}

.tournament:hover {
    background-color: #2E378D;
    color: white;
}

.btn-error {
    padding: 1em !important;
    width: 100% !important;
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

@media screen and (max-width: 768px) {
    .stats-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stats-table {
        width: 100%;
    }

    .photo-container {
        width: 100%;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.container.other-matches {
    margin-top: 4%;
}

.head-box {
    padding: 2%;
    background: #f7f7f7;
    margin-top: 3%;
    margin-bottom: 3%;
}