/* FootballOS - Operating System Style Interface */

#os-desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-image: url('img/stadium6dark.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    overflow: hidden;
    z-index: 1;
}
#appbar2 {
   display:none !important;
}
#infobar {
    display:none !important;
}
.os-window {
    width: 250px;
 
    background: rgba(30, 30, 46, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    flex-shrink: 0;
}
.os-window .present {
    background:none;
    padding:0px;
    margin:0px;
}
.os-window .resultscore {
    font-size: 20px;
    width:75px;
 
}
.os-window .resultteam {
    font-size: 10px;
    font-weight:bold;
    line-height:1.1;
    width:70px;
    color:#ffffff;
 
}
/* Stacked Messages */
#stacked-messages {
    position: fixed;
    top: 100px;
    left: 50px;
    width:300px;
    
    z-index: 10000;
   
    /* align to bottom */
 
}

.message-item {
    width:100%;
    padding:10px;
    background: rgba(30, 30, 46, 0.85);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

/* OS Layout */
#os-layout {
    display: flex;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top:50px;
    align-items: flex-start;
}

#os-layout > .os-window {
    align-self: flex-start;
}

/* Window container for stacking windows vertically */
.window-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    flex-shrink: 0;
}

.window-column .os-window {
    width: 250px; /* Match info-window and transfer-window width */
}
#next-match-window {
    font-size:14px;
}
#next-match-window h2 {
    font-size:12px;
}
#next-match-window h3 {
    font-size:14px;
    font-weight:bold;
}
#next-match-window h4 {
    font-size:12px;
    margin-top:0px;
}
#next-match-window {
    text-align:center;
}
#next-match-window .shapewin
,#next-match-window .shapelost
,#next-match-window .shapedraw
 {
    font-size:10px;
    padding:2px;

}


/* Desktop Icons */
#desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.frame {
    border:1px solid #ffffff20;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background:#0f3460;
    padding:5px;
    margin-top:20px;
    margin-bottom:5px;
    border-radius: 10px;
   
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 10px;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    text-decoration: none !important;
}

.desktop-icon:active {
    transform: scale(0.95);
    text-decoration: none !important;
}

.desktop-icon:link,
.desktop-icon:visited {
    text-decoration: none !important;
}

.desktop-icon.selected {
    background: rgba(74, 158, 255, 0.3);
}

.icon-image {
    font-size: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.icon-image img {
    height: 60px;
}

.icon-label {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    text-decoration: none;
}

.icon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(30, 30, 46, 0.95);
    z-index: 10;
}

.icon-badge-flash {
    animation: flash-badge 1.5s infinite;
    background: #ff4757;
}

@keyframes flash-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.desktop-icon {
    position: relative;
}

/* Info Window */
#info-window {
    
}

/* Transfer Window - uses same design as info-window */


.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(102, 179, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.window-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.window-btn.close:hover {
    background: #ff4757;
}

.window-content {
    padding: 16px;
    color: #e0e0e0;
    overflow-y: auto;
}
.os-window .reward {
    width:100%;
    left:0px;
    margin-left:0px;
    margin-top:0px;
    margin-bottom:0px;
    padding:10px;
}
.os-window .reward h1,
.os-window .reward h2 {
    font-size:16px;
}


/* Info Window Content */
.info-section {
    margin-bottom:5px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-label {
    font-size: 13px;
    color: #b0b0b0;
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.info-value.highlight {
    color: #4a9eff;
}

.info-value.negative,
.info-value.money.negative {
    color: #ff4444;
}

.bids-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.bids-link:hover {
    background: rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}



/* Taskbar */
#os-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.taskbar-start {
    display: flex;
    align-items: center;
}

.taskbar-btn {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.taskbar-btn:hover {
    background: rgba(74, 158, 255, 0.3);
}

.taskbar-logo-img {
    height: 32px;
    width: auto;
    padding: 4px 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.taskbar-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.taskbar-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.taskbar-icon {
    font-size: 16px;
    line-height: 1;
}

.taskbar-value {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.taskbar-value.negative,
.taskbar-value.money.negative {
    color: #ff4444;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 0;
}

.tray-date {
    font-size: 14px;
    color: #b0b0b0;
    font-weight: 500;
    padding: 4px 8px 4px 0;
    text-align: right;
    margin-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.tray-time {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Scrollbar styling */
.window-content::-webkit-scrollbar {
    width: 8px;
}

.window-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 4px;
}

.window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

/* Responsive */
@media (max-width: 1080px) {

.os-window {
    display:none;
}
 
}

@media (max-width: 767px) {
    #os-taskbar {
        display:none;
    }
    #os-layout {
        flex-direction: column;
    }
    #info-window {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    #os-desktop {
        margin-top:0px;
        overflow:auto;
    }
    #os-layout {
        padding: 15px;
        gap: 20px;
    }

    #desktop-icons {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        justify-items: center;
        max-width: 100%;
        width: 100%;
    }

    .desktop-icon {
        width: 70px;
        height: 90px;
        padding: 8px;
    }

    .icon-image {
        font-size: 40px;
        margin-bottom: 6px;
    }


    .icon-label {
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }
    .os-window {
        width: 100%;
    }
    #info-window {
        width: 100%;
    }
}
