body {
    margin: 0;
    background-color: #1b4332;
    color: white;
    height: 100vh;
    /* Generic green grass background as a fallback */
    background-image: radial-gradient(circle, #2d6a4f 0%, #1b4332 100%);
    background-size: cover;
    background-position: center;
    font-family: "Segoe UI", sans-serif;
    overflow: hidden;
}

#top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    backdrop-filter: blur(15px);
    background-color: rgba(27, 67, 50, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.window {
    position: absolute;
    top: 120px;
    left: 350px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    backdrop-filter: blur(25px);
    background-color: rgba(8, 28, 21, 0.65);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.window-header {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    cursor: move;
}

.window-title {
    font-weight: bold;
    color: #ffb703;
    font-size: 14px;
}

.close-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #e63946;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.close-button:hover {
    background-color: #ff4d6d;
}

.header-space {
    width: 14px;
}

.window-content {
    width: 420px;
    padding: 25px;
    box-sizing: border-box;
}

/* Desktop App layout */
#desktop-apps {
    padding-top: 70px;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: fit-content;
}

.desktop-icon {
    width: 95px;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.desktop-icon img {
    width: 50px;
    height: 50px;
}

.desktop-icon p {
    color: white;
    margin: 8px 0 0 0;
    font-size: 13px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Terminal Styling */
#terminal-window {
    width: 600px;
}

#terminal-window .window-content {
    width: auto;
}

#terminal-output {
    background: #081c15;
    color: #52b788;
    padding: 15px;
    height: 250px;
    overflow-y: auto;
    font-family: monospace;
    text-align: left;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

#terminal-input {
    width: 100%;
    padding: 10px;
    background: #1b4332;
    color: #d8f3dc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    font-family: monospace;
    box-sizing: border-box;
    border-radius: 6px;
}

/* Start Menu */
#start-menu {
    position: absolute;
    top: 60px;
    left: 10px;
    width: 240px;
    display: none;
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    background-color: rgba(8, 28, 21, 0.9);
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}

#start-menu p {
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    margin: 2px 0;
    font-size: 14px;
}

#start-menu p:hover {
    background-color: rgba(45, 106, 79, 0.6);
}

#start-button {
    cursor: pointer;
    font-weight: bold;
    color: #ffb703;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    background-color: rgba(8, 28, 21, 0.7);
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.taskbar-item {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    background-color: rgba(45, 106, 79, 0.2);
    color: white;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.05);
}

.taskbar-item:hover {
    background-color: rgba(45, 106, 79, 0.5);
}

/* App: Live Match Tracker Styling */
#scorecard {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.teams {
    font-size: 18px;
    font-weight: bold;
    color: #ffb703;
    margin-bottom: 10px;
}

.score-display {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.overs-display {
    font-size: 16px;
    color: #b7e4c7;
}

.commentary-box {
    background: #081c15;
    padding: 12px;
    height: 80px;
    overflow-y: auto;
    font-size: 13px;
    border-left: 3px solid #ffb703;
    border-radius: 4px;
    text-align: left;
    color: #d8f3dc;
}

/* App: Pitch Advisor Simulator */
.pitch-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pitch-btn {
    flex: 1;
    background-color: rgba(45, 106, 79, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.pitch-btn:hover {
    background-color: rgba(45, 106, 79, 0.8);
}

#pitch-analysis {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

/* App: Academy Wiki Layout */
#academy-window {
    width: 750px;
}

#academy-window .window-content {
    display: flex;
    width: auto;
    text-align: left;
}

#academy-sidebar {
    width: 180px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 15px;
}

#academy-content {
    flex: 1;
    padding-left: 15px;
    min-height: 200px;
}

.academy-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 5px;
}

.academy-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(8, 28, 21, 0.8);
    font-size: 11px;
    padding: 4px 0;
    z-index: 9998;
}