/* Windows 95 Theme CSS */
/* Tax Battle 1999 Game Interface */

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #000000;
    overflow: hidden;
}

/* Windows 95 Desktop */
.desktop {
    width: 100vw;
    height: 100vh;
    background-color: #008080; /* Classic Windows 95 teal */
    background-image: url('../assets/images/ui/desktop_bg.png');
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px; /* Space for taskbar */
}

/* Window Styles */
.window {
    position: absolute;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

#tax-form-window {
    width: 600px;
    height: 500px;
    top: 50px;
    left: 50px;
    z-index: 3;
}

#client-bio-window {
    width: 300px;
    height: 400px;
    top: 80px;
    right: 50px;
    z-index: 2;
}

#aim-window {
    width: 400px;
    height: 350px;
    bottom: 80px;
    right: 100px;
    z-index: 1;
}

.window-title {
    height: 20px;
    background-color: #000080; /* Windows 95 title bar blue */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    cursor: move;
}

.aim-title {
    background-color: #ffcc99; /* AIM title bar color */
    color: black;
}

.window-title-text {
    font-weight: bold;
    padding-left: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
}

.window-controls button {
    width: 16px;
    height: 16px;
    margin-left: 2px;
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 10px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 10px;
    background-color: #c0c0c0;
}

/* Windows 95 Button Style */
.win95-button {
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 10px;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 12px;
    color: black;
    cursor: pointer;
    margin: 2px;
}

.win95-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.win95-button:focus {
    outline: 1px dotted #000000;
    outline-offset: -4px;
}

/* Form Elements */
.tax-form {
    background-color: #ffffee; /* Slight off-white for form */
    border: 1px solid black;
    padding: 10px;
    height: 100%;
    overflow: auto;
}

.tax-form h2 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
}

.form-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 10px;
}

.form-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-row label {
    flex: 0 0 150px;
}

.form-input {
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background-color: white;
    padding: 2px 4px;
    width: 200px;
}

.radio-input, .checkbox-input {
    margin-right: 5px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Client Bio Styles */
.client-bio {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-photo {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border: 1px solid #808080;
    margin-bottom: 10px;
}

.client-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.client-details {
    align-self: flex-start;
    margin-bottom: 5px;
}

.client-description {
    margin-top: 10px;
    text-align: justify;
}

/* AIM Chat Window Styles */
.aim-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aim-messages {
    flex: 1;
    background-color: white;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 5px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.aim-message {
    margin-bottom: 5px;
}

.message-time {
    color: #808080;
    font-size: 10px;
    margin-right: 5px;
}

.message-sender {
    font-weight: bold;
    margin-right: 5px;
}

.system-message {
    color: #808080;
    font-style: italic;
}

.received-message .message-sender {
    color: #ff0000;
}

.sent-message .message-sender {
    color: #0000ff;
}

.aim-input-area {
    display: flex;
    margin-bottom: 10px;
}

.aim-input-area textarea {
    flex: 1;
    height: 40px;
    border: 1px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 5px;
    resize: none;
    font-family: 'MS Sans Serif', 'Segoe UI', sans-serif;
    font-size: 12px;
}

.battle-controls {
    display: flex;
    justify-content: space-between;
}

.battle-button {
    flex: 1;
    margin: 0 5px;
}

/* Taskbar Styles */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 0 2px;
    z-index: 9999;
}

.start-button {
    display: flex;
    align-items: center;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px 5px;
    margin-right: 5px;
    font-weight: bold;
    cursor: pointer;
    height: 24px;
}

.start-button img {
    height: 16px;
    margin-right: 4px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    height: 24px;
    overflow: hidden;
}

.taskbar-item {
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 2px 8px;
    margin-right: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    cursor: pointer;
}

.taskbar-item.active {
    border-color: #808080 #ffffff #ffffff #808080;
    background-color: #d3d3d3;
}

.taskbar-time {
    padding: 0 10px;
    border-left: 1px solid #808080;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #tax-form-window {
        width: 500px;
        left: 20px;
    }
    
    #client-bio-window {
        width: 250px;
        right: 20px;
    }
    
    #aim-window {
        width: 350px;
        right: 50px;
    }
}

@media (max-width: 768px) {
    #tax-form-window {
        width: 90%;
        height: 60%;
        left: 5%;
        top: 20px;
    }
    
    #client-bio-window {
        width: 40%;
        height: 30%;
        right: 5%;
        top: auto;
        bottom: 40px;
    }
    
    #aim-window {
        width: 50%;
        height: 30%;
        right: 5%;
        bottom: 40px;
    }
    
    .taskbar-item {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .window {
        width: 95% !important;
        height: 80% !important;
        left: 2.5% !important;
        right: auto !important;
        top: 10px !important;
        bottom: auto !important;
    }
    
    .taskbar-item {
        max-width: 80px;
    }
}

/* Animation Effects */
@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window {
    animation: windowOpen 0.2s ease-out;
}