body {
    margin: 0;
    padding: 0;
    font-family: "MS Sans Serif", Arial, sans-serif;
    background: url('xp-bliss.jpg') no-repeat center center fixed;
    background-color: #0054A6;
    color: #000000;
    min-height: 100vh;
    overflow: hidden;
    image-rendering: pixelated;
    user-select: none;
}

.desktop-fake {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    z-index: 100;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    padding: 5px;
    transition: all 0.2s ease;
}

.desktop-icon:hover {
    transform: scale(1.1);
    color: #82d3e4;
    text-shadow: 0 0 5px #00ff00;
}

.pixel-icon {
    font-size: 24px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 1px #000000;
}

.retro-popup-window {
    position: absolute;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    border: 2px solid #000000;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.7), inset 2px 2px 5px rgba(255, 255, 255, 0.4);
    display: none;
    border-radius: 4px;
    z-index: 3001;
    transition: all 0.3s ease;
    overflow: hidden;
}

.retro-popup-window.maximized {
    justify-content: center;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.popup-titlebar {
    background: linear-gradient(to bottom, #d3d3d3, #b0b0b0);
    color: #000000;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px outset #ffffff;
    user-select: none;
    font-weight: bold;
    text-shadow: 1px 1px 1px #ffffff;
}

.popup-title {
    display: flex;
    align-items: center;
    justify-content: center; /* توسيط النص */
    width: 100%; /* لضمان ملء المساحة */
    padding-left: 30px;
}

.popup-controls {
    display: flex;
    order: 2;
}

.popup-icon {
    margin-top: 10px;
    margin-right: 10px; /* زيادة المسافة بين الأيقونة والنص */
    font-size: 16px;
    position: absolute;
    right: 10px;
}

.popup-controls span {
    padding: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-controls .popup-min:hover {
    background: #a0a0a0;
    border-radius: 2px;
}

.popup-controls .popup-max:hover {
    background: #a0a0a0;
    border-radius: 2px;
}

.popup-controls .popup-close:hover {
    background: #800000;
    border-radius: 2px;
    color: #ff0000;
}

.popup-content {
    padding: 10px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    height: calc(100% - 30px); /* تقليل الارتفاع بناءً على شريط العنوان */
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-content {
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.contact-form input, .contact-form textarea {
    padding: 5px;
    border: 1px solid #000000;
    background: #ffffff;
    font-family: "MS Sans Serif", Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    flex-grow: 1;
}

.contact-form button {
    padding: 5px 10px;
    border: 2px outset #ffffff;
    background: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    margin-top: auto; /* دفع الزر للأسفل */
}

.contact-form button:hover {
    background: #c0c0c0;
    border-style: inset;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.taskbar-fake {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #d3d3d3, #b0b0b0);
    height: 40px;
    border-top: 2px outset #ffffff;
    border-left: 2px outset #ffffff;
    border-right: 2px outset #ffffff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 200;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

.start-btn {
    background: #a0a0a0;
    border: 2px outset #ffffff;
    color: #000000;
    padding: 5px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 1px #ffffff;
}

.start-btn:hover {
    background: #c0c0c0;
    border-style: inset;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.taskbar-icon {
    background: #a0a0a0;
    border: 2px outset #ffffff;
    color: #000000;
    padding: 5px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 1px #ffffff;
}

.taskbar-icon:hover {
    background: #c0c0c0;
    border-style: inset;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wall-clock {
    background: #ffffe0;
    border: 2px outset #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 5000;
    font-size: 14px;
    color: #000000;
    text-align: center;
    margin-left: auto;
    transition: all 0.2s ease;
}

.wall-clock:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
}

.clock-btn {
    margin-top: 5px;
    padding: 3px 10px;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.clock-btn:hover {
    background: #a0a0a0;
    border-style: inset;
    transform: translateY(-1px);
}

.sticky-note {
    position: absolute;
    top: 60px;
    left: 20px;
    background: #cc9900;
    border: 2px solid #000000;
    padding: 10px;
    width: 200px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), inset 2px 2px 5px rgba(255, 255, 255, 0.3);
    z-index: 120;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.sticky-title {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    background: #cc9900;
    padding: 4px;
    border-bottom: 1px dashed #000000;
}

.sticky-close {
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.sticky-close:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.sticky-projects {
    list-style: none;
    padding: 0;
    color: #000000;
    font-size: 12px;
}

.context-menu {
    display: none;
    position: absolute;
    background: #c0c0c0;
    border: 2px solid #000000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 6000;
    padding: 5px 0;
    font-size: 14px;
    color: #000000;
    border-radius: 2px;
}

.context-item {
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.context-item:hover {
    background: #000080;
    color: #ffffff;
    text-shadow: 1px 1px 1px #000000;
}

/* أنماط لنموذج التواصل مباشرة في النافذة */
.contact-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.contact-form input, .contact-form textarea {
    padding: 5px;
    border: 1px solid #000000;
    background: #ffffff;
    font-family: "MS Sans Serif", Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    flex-grow: 1;
}

.contact-form button {
    padding: 5px 10px;
    border: 2px outset #ffffff;
    background: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    margin-top: auto; /* دفع الزر للأسفل */
}

.contact-form button:hover {
    background: #c0c0c0;
    border-style: inset;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* إزالة أنماط الـ iframe غير الضرورية */
.contact-form-container {
    display: none; /* تم إزالته لأننا نستخدم النموذج مباشرة */
}