:root {
    --guida-green-numbers: #00CC00; /* Shamrock Green - A clear green for numbers */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    margin: 0;
    color: #c0c0d0;
    transition: background-color 0.5s ease;
}

.auth-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #1a1a2e;
}

.auth-page-body .container {
    background-color: rgba(30, 30, 50, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    z-index: 1;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.auth-page-body h1 {
    color: #00ffff;
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.admin-indicator {
    color: #ff6347;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 5px;
}

.add-background-icon {
    color: #32cd32; 
    font-weight: bold;
    font-size: 1.5em; 
    margin-left: 10px; 
    vertical-align: middle; 
    cursor: pointer; 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.add-background-icon:hover {
    color: #228b22; 
    text-shadow: 0 0 8px rgba(50, 205, 50, 0.6); 
}

#managerGuidaStarNameDisplay {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #8a2be2;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.4);
}

.auth-page-body .form-container {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 20px;
}

.auth-page-body h2 {
    color: #a0a0ff;
    margin-bottom: 20px;
}

.auth-page-body .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.auth-page-body .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #c0c0d0;
    font-weight: bold;
}

.auth-page-body .input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #5a5a7a;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #2a2a4a;
    color: #00ffff;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-page-body .input-group input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    outline: none;
}

.auth-page-body .button-group {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.auth-page-body .button-group button {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-page-body #signupBtn {
    background-color: #32cd32;
    color: white;
}

.auth-page-body #signupBtn:hover {
    background-color: #228b22;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.auth-page-body #loginBtn {
    background-color: #4169e1;
    color: white;
}

.auth-page-body #loginBtn:hover {
    background-color: #0000cd;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

.auth-page-body #playerLoginBtn {
    background-color: #ff8c00;
    color: white;
}

.auth-page-body #playerLoginBtn:hover {
    background-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.auth-page-body .message {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ff6347;
    min-height: 1.2em;
}

.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.links-container a {
    width: 100%;
    box-sizing: border-box;
    color: #00ffff;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.links-container a:hover {
    text-decoration: underline;
    color: #00bfff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.back-link {
    display: inline-block;
    color: #00ffff;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 0;
    transition: color 0.3s ease, text-decoration 0.3s ease, text-shadow 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    color: #00bfff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-container, #playerInfoSection, #lineDetailsSection, #genericMessageArea, .add-player-section, .search-player-section, .image-upload-section, #uploadedImagesContainer, .password-section, .tecnico-content #guidaNamesSection {
    background-color: rgba(30, 30, 50, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 20px;
    text-align: center;
}

.form-container h2,
#mainContentArea h1,
#playerInfoSection h3,
#lineDetailsSection h3,
.image-upload-section h3,
.password-section h3,
.add-player-section h3,
.search-player-section h3,
#uploadedImagesContainer h3,
.pay-section h3,
.tecnico-content h2,
.tecnico-content #guidaNamesSection h3 {
    color: #a0a0ff;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(160, 160, 255, 0.3);
}

#playerNameDisplay {
    margin-top: 10px;
    font-size: 1.4em;
    font-weight: bold;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

#playerIdDisplay {
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #c0c0d0;
    text-align: center;
}

#managerGuidaStarNameDisplay {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #8a2be2;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.4);
}

#playerBalanceDisplay {
    margin-top: 10px;
    font-size: 1.2em;
    color: var(--guida-green-numbers); 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4); 
}

.image-upload-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.button-like-label {
    display: inline-block;
    background-color: #32cd32;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button-like-label:hover {
    background-color: #228b22;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

#uploadedImagesContainer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

#noImagesMessage {
    font-size: 0.9em;
    color: #808080;
}

#uploadedImagesContainer .wallet-image-wrapper {
    position: relative;
    display: inline-block;
    margin: 10px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: #2a2a4a;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#uploadedImagesContainer img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#uploadedImagesContainer .wallet-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.delete-wallet-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.delete-wallet-image-btn:hover {
    background-color: #dc143c;
    box-shadow: 0 0 8px rgba(255, 99, 71, 0.6);
}

.password-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.password-section .input-group {
    margin-bottom: 10px;
    text-align: left;
}

.password-section .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #c0c0d0;
    font-weight: bold;
    font-size: 0.9em;
}

.password-section .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #5a5a7a;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95em;
    background-color: #2a2a4a;
    color: #00ffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-section .input-group input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    outline: none;
}

.password-section button {
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.password-section button:hover {
    background-color: #ff4500;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.wallet-message {
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 1.2em;
    color: #ff6347;
}

#playerInfoSection {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(30, 30, 50, 0.8);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
    margin-bottom: 20px;
}

#genericMessageArea {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(30, 30, 50, 0.8);
    min-height: 1.5em;
    text-align: center;
    font-size: 1em;
    color: #c0c0d0;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
    margin-bottom: 20px;
}

#lineDetailsSection {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(30, 30, 50, 0.8);
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
    margin-bottom: 20px;
}

#lineDetailsSection p {
    margin-bottom: 8px;
    font-size: 1em;
    color: #c0c0d0;
}

#lineDetailsSection strong {
    color: #a0a0ff;
}

#lineDetailsSection ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

#lineDetailsSection li {
    background-color: #2a2a4a;
    border: 1px solid #5a5a7a;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #c0c0d0;
}

#lineDetailsSection .player-position {
    font-weight: bold;
    color: var(--guida-green-numbers); 
    margin-right: 5px; 
}

#lineDetailsSection .line-player-id {
    font-size: 0.9em;
    color: var(--guida-green-numbers); 
    margin-left: 5px;
}

.line-title-area {
    display: flex;
    flex-direction: column-reverse; 
    justify-content: center;
    align-items: center;
    width: 100%; 
    margin-bottom: 10px;
}

.line-title-area h4 {
    margin: 0; 
    color: #00ffff;
    font-size: 1.1em;
    flex-grow: 1; 
    text-align: center; 
    flex-shrink: 0; 
    width: 100%; 
    order: 2; 
    margin-bottom: 5px; 
    transition: color 0.3s ease;
}

.guida-name-in-line {
    font-size: 0.85em; 
    color: #8a2be2; 
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px; 
    width: 100%; 
    order: 3; 
    cursor: default; /* Changed from pointer */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    min-height: 1.2em;
}

.guida-name-in-line.placeholder {
    color: #777; 
    font-weight: normal;
    font-style: italic;
}

.guida-name-in-line:hover {
    color: #8a2be2; /* Keep its base color */
    text-shadow: none; /* Removed hover shadow */
}

.line-icons-options {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    margin-bottom: 5px; 
    order: 1; 
}

.add-player-to-line-icon {
    color: #5cb85c; 
    font-weight: bold;
    margin-right: 5px; 
    font-size: 1.8em; 
    display: inline-block;
    cursor: pointer; 
    flex-shrink: 0; 
    transition: color 0.3s ease;
    padding: 0 5px;
    order: 1; 
}

.add-player-to-line-icon:hover {
    color: #228b22;
}

.line-options-btn {
    background: none; 
    border: none; 
    color: #337ab7; 
    font-size: 1.5em; 
    cursor: pointer;
    padding: 0 5px; 
    margin-left: 5px; 
    flex-shrink: 0; 
    transition: color 0.3s ease;
    order: 2; 
}

.line-options-btn:hover {
    color: #286090; 
}

.line-slots {
    display: flex;
    flex-direction: column;
    width: 100%; 
    gap: 3px; 
    flex-grow: 1; 
}

.lines-view-content .guida-name-in-line {
    font-size: 0.9em;
    color: #a0a0ff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    order: 1;
}

.main-page-body {
    background-color: #1a1a2e;
    color: #c0c0d0;
}

.main-page-body .container {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    display: block;
}

#mainContentArea {
    min-width: 300px;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: none;
    text-align: center;
    margin: 0;
    position: static;
    cursor: default;
    max-width: none;
    border: none;
    flex-grow: 1;
}

#mainContentArea h1 {
    color: #00ffff;
    font-size: 2.8em;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

#mainContentArea p {
    margin-bottom: 25px;
    color: #c0c0d0;
}

.player-management {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: left;
}

.player-management h2 {
    color: #a0a0ff;
    margin-bottom: 20px;
    text-align: center;
}

.management-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.add-player-section {
    flex: 1;
    min-width: 350px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(30, 30, 50, 0.8);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.search-player-section {
    flex: 0 0 350px;
    padding: 25px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(30, 30, 50, 0.8);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.add-player-section h3,
.search-player-section h3 {
    text-align: left;
    margin-top: 0;
}

.add-player-section .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.add-player-section .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff; 
    font-weight: bold;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3); 
}

.add-player-section .input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #5a5a7a; 
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #2a2a4a; 
    color: #00ffff; 
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.1); 
}

.add-player-section .input-group input:focus {
    border-color: #00ffff; 
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6), inset 0 0 8px rgba(0, 255, 255, 0.3); 
    outline: none;
    background-color: #3a3a5a; 
}

.search-player-section .input-group {
     margin-bottom: 15px;
     text-align: left;
}

.search-player-section .input-group label {
     display: block;
     margin-bottom: 8px;
     color: #a0a0ff; 
     font-weight: bold;
     font-size: 1em;
     text-shadow: 0 0 5px rgba(160, 160, 255, 0.3);
}

.search-player-section .input-group input {
     width: 100%;
     padding: 12px;
     border: 1px solid #5a5a7a;
     border-radius: 6px;
     box-sizing: border-box;
     background-color: #2a2a4a;
     color: #a0a0ff; 
     font-size: 1em;
     transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
     box-shadow: inset 0 0 5px rgba(160, 160, 255, 0.1);
}

.search-player-section .input-group input:focus {
     border-color: #a0a0ff; 
     box-shadow: 0 0 8px rgba(160, 160, 255, 0.6), inset 0 0 8px rgba(160, 160, 255, 0.3);
     outline: none;
     background-color: #3a3a5a;
}

.add-player-section button,
.search-player-section button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); 
}

#addPlayerBtn {
    background-color: #32cd32; 
    color: white;
}

#addPlayerBtn:hover {
    background-color: #228b22; 
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.6); 
}

#createLineBtn {
    background-color: #4169e1; 
    color: white;
}

#createLineBtn:hover {
    background-color: #0000cd; 
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.6); 
}

#searchPlayerBtn {
    background-color: #ff8c00; 
    color: white;
}

#searchPlayerBtn:hover {
    background-color: #ff4500; 
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6); 
}

#searchMessage {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    text-align: left; 
    min-height: 1.5em; 
    color: #c0c0d0;
    font-size: 0.95em;
}

.search-result-item {
    background-color: rgba(40, 40, 60, 0.7); 
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 15px; 
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.1);
}

.search-result-item p {
    margin-bottom: 8px; 
    color: #c0c0d0; 
    word-break: break-word; 
}

.search-result-item p:last-child {
    margin-bottom: 0; 
}

.search-result-item strong {
     color: #a0a0ff; 
}

.search-name {
     color: #00ffff; 
     font-weight: bold;
}

.search-nickname {
     color: #8a2be2; 
     font-weight: bold;
}

.search-id {
    color: var(--guida-green-numbers); 
    font-size: 0.9em;
}

.search-line-info {
    color: var(--guida-green-numbers); 
    font-weight: bold;
}

.edit-wallet-link {
     display: inline-block;
     margin-top: 5px;
     color: #ff8c00; 
     text-decoration: none;
     font-size: 0.9em;
     transition: color 0.3s ease, text-decoration 0.3s ease, text-shadow 0.3s ease;
}

.edit-wallet-link:hover {
     text-decoration: underline;
     color: #ff4500;
     text-shadow: 0 0 5px rgba(255, 140, 0, 0.4);
}

.tecnico-link {
    display: inline-block;
    margin-top: 5px;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease, text-decoration 0.3s ease, text-shadow 0.3s ease;
}

.tecnico-link:hover {
    text-decoration: underline;
    color: #00bfff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

#technicianIdDisplay {
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1em;
    color: var(--guida-green-numbers); 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
    display: none;
}

.lines-view-content {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: rgba(30, 30, 50, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    max-width: 1000px;
    margin: 50px auto;
}

.lines-view-content h2 {
    color: #a0a0ff;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #00ffff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, text-decoration 0.3s ease, text-shadow 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    color: #00bfff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

#linesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    background-color: rgba(30, 30, 50, 0.6);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.line-square {
    width: 200px;
    min-height: 200px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(40, 40, 60, 0.7);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    color: #c0c0d0;
}

.lines-view-content .line-title-area { 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    width: 100%; 
    margin-bottom: 10px;
}

.lines-view-content .line-title-area h4 { 
    margin: 0;
    color: #00ffff;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    order: 2; 
}

.lines-view-content .guida-name-in-line {
    font-size: 0.9em; 
    color: #a0a0ff; 
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px; 
    order: 1; 
}

.line-slots {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 3px;
    flex-grow: 1;
}

.line-slots .slot {
    background-color: rgba(50, 50, 70, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 5px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #c0c0d0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    position: relative;
}

.line-slots .slot:nth-child(5),
.line-slots .slot:nth-child(6) {
    color: #ff6347;
}

.line-slots .slot .line-player {
    background-color: rgba(50, 205, 50, 0.3);
    border: 1px solid rgba(50, 205, 50, 0.5);
    color: #e0ffe0;
    margin: 0;
    border-radius: 4px;
    font-size: 1em;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
    box-sizing: border-box;
    cursor: default;
    font-weight: normal;
}

.line-slots .slot .line-player span {
     flex-grow: 1;
     margin-right: 5px;
}

.position-label {
    font-size: 0.8em;
    font-weight: bold;
    color: #a0a0ff;
}

.player-slot-number {
     font-weight: bold;
     color: var(--guida-green-numbers); 
     margin-right: 5px;
}

.line-player .line-player-nickname {
      color: #8a2be2;
      font-weight: bold;
      font-size: 1em;
}

.line-player .line-player-id {
      color: var(--guida-green-numbers); 
      font-size: 0.9em;
      margin-left: 5px;
}

.line-player-info {
     word-break: break-word;
}

#noManagerContextMessage {
      margin-top: 20px;
      font-size: 1.1em;
      color: #ff6347;
      text-align: center;
}

.technician-assigned-line {
    color: #ff6347 !important; 
    text-shadow: 0 0 8px rgba(255, 99, 71, 0.6) !important; 
}

.sgt-view-content {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: rgba(30, 30, 50, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    max-width: 700px;
    margin: 50px auto;
}

.sgt-view-content h2 {
    color: #a0a0ff;
    margin-bottom: 20px;
}

#subordinateAssistantsListSgt {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 15px;
}

#subordinateAssistantsListSgt li {
    background-color: rgba(40, 40, 60, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #c0c0d0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    word-break: break-word;
    flex-wrap: wrap; 
}

#subordinateAssistantsListSgt li strong {
     color: var(--guida-green-numbers); 
}

#subordinateAssistantsListSgt li .manager-username {
     color: #8a2be2; 
     font-weight: bold;
     font-size: 0.9em;
     margin-left: auto; 
     flex-shrink: 0; 
}
 #subordinateAssistantsListSgt li .assistant-name {
      color: #a0a0ff; 
      font-weight: normal; 
      font-style: italic;
      margin-left: 5px; 
      flex-shrink: 0; 
  }

#subordinateAssistantsListSgt li > span {
    flex-grow: 1; 
    display: flex; 
    align-items: flex-start; /* Align text to the top for multiple lines */
    flex-direction: column; /* Stack text elements vertically */
    flex-wrap: nowrap; /* Prevent wrapping within the info span */
}

#subordinateAssistantsListSgt li > span strong {
    flex-shrink: 0; 
}

#subordinateAssistantsListSgt li > span .assistant-name {
     margin-left: 5px; 
}

.subordinateAssistantsSection ul li strong {
    color: var(--guida-green-numbers); 
}

#subordinateAssistantsSection ul li span {
    flex-grow: 1;
    margin-right: 10px;
}

#subordinateAssistantsSection .assistant-actions button {
    background-color: #ff6347;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1;
    transition: background-color 0.3s ease;
    margin-left: 5px;
    flex-shrink: 0;
    width: auto;
    margin-top: 0;
}

#subordinateAssistantsSection .assistant-actions button:hover {
    background-color: #dc143c;
}

#subordinateAssistantMessage {
    margin-top: 15px;
    font-size: 0.95em;
    min-height: 1.2em;
    text-align: center;
    color: #ff6347;
}

#subordinateAssistantsHeading {
    display: none; /* Hide the heading as requested */
}

#subordinateAssistantCountDisplay strong {
    color: var(--guida-green-numbers); 
}

#line1-player-details {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(30, 30, 50, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: left;
}

#line1-player-details h4 {
    color: #a0a0ff;
    margin-bottom: 10px;
}

#line1-player-details ul {
    list-style-type: none;
    padding: 0;
}

#line1-player-details li {
    background-color: rgba(40, 40, 60, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    color: #c0c0d0;
}

#line1-player-details li:last-child {
    margin-bottom: 0;
}

.line-square.line-assigned-to-assistant .line-title-area h4 {
    color: #ff6347; 
    text-shadow: 0 0 8px rgba(255, 99, 71, 0.6); 
}

.technician-name {
     color: #000000;
     font-weight: normal;
     font-size: 0.9em;
     margin-right: 5px;
     display: inline-block;
     flex-shrink: 0;
}

.database-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: #c0c0d0;
    font-size: 0.95em;
    text-align: left; 
}

.database-section ul li {
    background-color: transparent; 
    border: none; 
    padding: 0; 
    margin-bottom: 5px; 
    border-radius: 0; 
    color: #c0c0d0; 
    word-break: break-word;
}

.database-section ul li strong {
     color: inherit; 
}

.database-section ul li:last-child {
     margin-bottom: 0;
}

.database-section .key { color: #00ffff; } 
.database-section .string { color: #32cd32; } 
.database-section .number { color: var(--guida-green-numbers); } 
.database-section .boolean { color: #4169e1; } 
.database-section .null { color: #ff6347; } 

#subordinateAssistantsListSgt li > span .assistant-name {
    margin-left: 5px;
}

.user-info-detail {
    font-weight: bold;
    color: var(--guida-green-numbers); 
    font-size: 1.2em;
}

.user-level {
    font-weight: bold;
    color: var(--guida-green-numbers); 
    margin-left: 5px;
}

#technicianIdDisplay {
    color: var(--guida-green-numbers); 
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.number-highlight {
    color: var(--guida-green-numbers);
}

/* Styles for the new modal/overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above everything else */
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Start with 0 opacity */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: rgba(30, 30, 50, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.4);
    max-width: 500px;
    width: 90%;
    max-height: 80vh; /* Limit height */
    overflow-y: auto; /* Add scroll if content exceeds height */
    position: relative;
    text-align: center; /* Center content */
}

.modal-content h3 {
    color: #a0a0ff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 5px rgba(160, 160, 255, 0.4);
}

.modal-content .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #c0c0d0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close-button:hover {
    color: #ff6347;
}

.modal-content .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-content .input-group label {
    display: block;
    margin-bottom: 5px;
    color: #c0c0d0;
    font-weight: bold;
}

.modal-content .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #5a5a7a;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #2a2a4a;
    color: #00ffff;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .input-group input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    outline: none;
}

.modal-content button {
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.modal-content button:hover {
    background-color: #0000cd;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

.modal-content .message {
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 1.2em;
    color: #ff6347; /* Error color */
}

.modal-content small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #808080;
    text-align: left;
}

/* Styles for the generic content modal (now used for tecnico.html) */
#genericContentModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#genericContentModalOverlay.visible {
    visibility: visible;
    opacity: 1;
}

#genericContentModalOverlay .modal-content {
    background-color: rgba(30, 30, 50, 0.98); /* Slightly less transparent */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.4); /* Stronger shadow */
    border: 1px solid rgba(0, 255, 255, 0.5); /* Stronger border */
    max-width: 800px; /* Wider to accommodate tecnico.html layout */
    width: 90%;
    max-height: 90vh; /* Allow more height */
    overflow: hidden; /* Hide overflow for iframe content */
}

/* New style for the lines header search container */
.lines-header-search {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center horizontally */
    align-items: center;
    gap: 10px; /* Space between items */
    margin-bottom: 20px; /* Space below the search section */
    padding: 15px;
    background-color: rgba(30, 30, 50, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.lines-header-search h4 {
    margin: 0; /* Remove default margin */
    flex-shrink: 0; /* Prevent from shrinking */
}

.lines-header-search .input-group {
    margin-bottom: 0; /* Remove default input-group margin */
    display: flex; /* Make label/input/button inline */
    gap: 10px;
    align-items: center;
    flex-grow: 1; /* Allow input group to grow */
}

.lines-header-search .input-group label {
    margin-bottom: 0; /* Remove default label margin */
    white-space: nowrap; /* Prevent label from wrapping */
}

.lines-header-search .input-group input {
    flex-grow: 1; /* Allow input to fill space */
    max-width: 200px; /* Limit input width */
    padding: 8px 12px;
    font-size: 0.95em;
}

.lines-header-search .input-group button {
    padding: 8px 15px;
    font-size: 0.95em;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.lines-header-search .input-group button:hover {
    background-color: #0000cd;
    box-shadow: 0 0 8px rgba(65, 105, 225, 0.5);
}

#guidaSearchMessage {
    width: 100%; /* Take full width for message */
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 1.2em;
    color: #ff6347; /* Default to error color */
}