@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

body {
    cursor: url("cursor\ \(1\).png") 4 12, auto;
    margin: 0;
    padding: 0;
    background: linear-gradient(to left, balck, rgb(16, 38, 183), darkblue);
    color: white;
    text-align: center;
    font-family: Cairo, sans-serif;
}

/* تصميم قائمة Start */
.start-menu {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 280px;
    background: rgba(0, 40, 120, 0.95);
    color: white;
    padding: 10px 0;
    border-radius: 15px;
    display: none;
    box-shadow: 0 0 30px rgba(0, 92, 230, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideUp 0.25s cubic-bezier(0.33, 1, 0.68, 1);
    z-index: 1000;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.start-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.start-menu li {
    padding: 14px 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    margin: 4px 10px;
    border-radius: 8px;
}

.start-menu li:hover {
    background: linear-gradient(90deg, 
        rgba(0, 122, 255, 0.3) 0%, 
        rgba(0, 92, 230, 0.15) 100%);
    transform: translateX(8px);
}

.start-menu li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #00ffaa;
    border-radius: 2px;
    opacity: 0;
    transition: 0.3s;
}

.start-menu li:hover::before {
    opacity: 1;
    left: 0px;
}

.start-menu li::after {
    content: "›";
    position: absolute;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4em;
    transition: 0.3s;
}

.start-menu li:hover::after {
    color: white;
    transform: translateX(3px);
}

/* تصميم زر Start على شكل باب */
.start-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #ffd700;
    padding: 15px 30px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.35),
        inset 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #5c4033;
    z-index: 1001;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
}

.start-btn::before {
    content: "";
    position: absolute;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 
        0 0 5px #ffd700,
        inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.start-btn:hover {
    transform: perspective(500px) rotateY(15deg) scale(1.05);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.start-btn:active {
    transform: perspective(500px) rotateY(25deg) scale(0.98);
}

.start-btn::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.start-btn:hover::after {
    opacity: 1;
}

/* باقي التصميمات */
.window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
    width: 400px;
    z-index: 1002;
}

.window .title-bar {
    background: #333;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window .title-bar .close-btn {
    background: #ff5555;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.terminal {
    background: #000;
    color: #0f0;
    padding: 10px;
    font-family: "Courier New", monospace;
    height: 200px;
    overflow-y: auto;
    border-radius: 5px;
}

.calculator {
    background: #444;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    margin: 0 auto;
}

.calculator input[type="text"] {
    width: 100%;
    height: 50px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-align: right;
    padding: 10px;
    font-size: 24px;
    margin-bottom: 10px;
}

.calculator .buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calculator .buttons button {
    background: #666;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
}

.calculator .buttons button:hover {
    background: #888;
}

.calculator .buttons button.operator {
    background: #ff9500;
}

.calculator .buttons button.operator:hover {
    background: #ffaa33;
}

.calculator .buttons button.equal {
    background: #34c759;
    grid-column: span 2;
}

.calculator .buttons button.equal:hover {
    background: #4cd964;
}

.calculator .theme-btn {
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.calculator .theme-btn:hover {
    background: #0099ff;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 139, 0.9);
    display: flex;
    align-items: center;
    padding: 5px;
    backdrop-filter: blur(10px);
    z-index: 999;
}

/* تصميمات Anti Virus */
.antivirus {
    padding: 20px;
    text-align: center;
}

.av-header {
    background: #dc3545;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.scan-progress {
    background: #333;
    height: 20px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #28a745;
    transition: width 0.5s ease;
}

.scan-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: #138496;
    transform: scale(1.05);
}

.threats-found {
    background: #f8f9fa;
    color: #212529;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}
/* تحسينات لنافذة My Computer والمجلدات */
.window .content {
    padding: 15px;
    background: #f0f0f0;
    color: #333;
    border-radius: 0 0 10px 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.drive-item, .folder-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.drive-item:hover, .folder-item:hover {
    transform: translateX(8px);
    background: #e3f2fd;
    box-shadow: 0 4px 10px rgba(0,92,230,0.2);
}

.drive-item::before, .folder-item::before {
    font-family: "Font Awesome 5 Free";
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.drive-item::before {
    content: "\f0a0"; /* أيقونة القرص الصلب */
    color: #007bff;
}

.folder-item::before {
    content: "\f07b"; /* أيقونة المجلد */
    color: #ffc107;
}

/* شريط التمرير */
.window .content::-webkit-scrollbar {
    width: 8px;
}

.window .content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.window .content::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

/* تحسينات إضافية للنوافذ الفرعية */
#cDriveWindow .content {
    background: #fff;
    padding: 20px;
}

#cDriveWindow .folder-item {
    padding: 10px;
    margin: 5px 0;
}

/* رسالة المجلد الفارغ */
.window .content p {
    text-align: center;
    color: #666;
    padding: 30px;
    font-style: italic;
}

/* إطار النوافذ المعدل */
.window {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.2),
        inset 0 0 15px rgba(255,255,255,0.1);
}

/* تحسين أزرار الإغلاق */
.window .close-btn {
    transition: all 0.2s ease;
    background: #ff5f57 !important;
}

.window .close-btn:hover {
    background: #ff3b30 !important;
    transform: scale(1.1);
}

/* شريط العنوان المعدل */
.window .title-bar {
    background: linear-gradient(90deg, #3a3a3a, #2a2a2a);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);

}
