/* Windows XP-inspired Personal Website Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a5c 25%, #2a4a7c 50%, #1a3a5c 75%, #0a1a3a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.desktop {
    min-height: 100vh;
    position: relative;
}


/* Main Window */
.main-window {
    position: relative;
    margin: 20px auto;
    max-width: 1000px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.window {
    background: white;
}

.title-bar {
    background: linear-gradient(to bottom, #245edb 0%, #1e4bb8 50%, #1a3fa0 100%);
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a7ce8;
}

.title-bar-text {
    font-size: 13px;
    font-weight: 600;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 20px;
    height: 18px;
    border: 1px solid #4a7ce8;
    background: linear-gradient(to bottom, #4a7ce8 0%, #3d6bd1 50%, #2e5bc4 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.title-bar-controls button:hover {
    background: linear-gradient(to bottom, #5a8cf0 0%, #4a7ce8 50%, #3d6bd1 100%);
}

.title-bar-controls .close:hover {
    background: linear-gradient(to bottom, #ff6b6b 0%, #ff5252 50%, #e53935 100%);
}

.window-content {
    padding: 30px;
    background: linear-gradient(to bottom, #f8f8f8 0%, #f0f0f0 100%);
    min-height: 600px;
}


/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.content-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #4a7ce8;
}

.card-header {
    background: linear-gradient(to bottom, #245edb 0%, #1e4bb8 50%, #1a3fa0 100%);
    color: white;
    padding: 12px 16px;
    border-bottom: 1px solid #4a7ce8;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.card-content p {
    margin-bottom: 12px;
}

.card-content ul {
    list-style: none;
    padding-left: 0;
}

.card-content li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.card-content li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4a7ce8;
    font-size: 12px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .window-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .window-content {
        padding: 15px;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.4s ease forwards;
}

.content-card:nth-child(1) { animation-delay: 0.05s; }
.content-card:nth-child(2) { animation-delay: 0.1s; }
.content-card:nth-child(3) { animation-delay: 0.15s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a7ce8 0%, #3d6bd1 50%, #2e5bc4 100%);
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5a8cf0 0%, #4a7ce8 50%, #3d6bd1 100%);
}

/* Notification Dialog */
.notification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.dialog-window {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    animation: dialogSlideIn 0.3s ease;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dialog-title-bar {
    background: linear-gradient(to bottom, #245edb 0%, #1e4bb8 50%, #1a3fa0 100%);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a7ce8;
    border-radius: 6px 6px 0 0;
}

.dialog-title {
    font-size: 14px;
    font-weight: 600;
}

.dialog-close {
    width: 20px;
    height: 18px;
    border: 1px solid #4a7ce8;
    background: linear-gradient(to bottom, #4a7ce8 0%, #3d6bd1 50%, #2e5bc4 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background: linear-gradient(to bottom, #ff6b6b 0%, #ff5252 50%, #e53935 100%);
}

.dialog-content {
    padding: 20px;
    background: white;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #c0c0c0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a7ce8;
    box-shadow: 0 0 0 2px rgba(74, 124, 232, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(to bottom, #4a7ce8 0%, #3d6bd1 50%, #2e5bc4 100%);
    border-color: #4a7ce8;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #5a8cf0 0%, #4a7ce8 50%, #3d6bd1 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border-color: #c0c0c0;
    color: #333;
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #e0e0e0 100%);
    transform: translateY(-1px);
}

/* Permission Section */
.permission-section {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(to bottom, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 6px;
}

.permission-info p {
    margin: 0 0 12px 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.btn-permission {
    background: linear-gradient(to bottom, #f39c12 0%, #e67e22 50%, #d35400 100%);
    border: 2px solid #f39c12;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-permission:hover {
    background: linear-gradient(to bottom, #e67e22 0%, #d35400 50%, #c0392b 100%);
    transform: translateY(-1px);
}

.permission-status {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

.permission-status.granted {
    background: linear-gradient(to bottom, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    color: #155724;
    display: block;
}

.permission-status.denied {
    background: linear-gradient(to bottom, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #dc3545;
    color: #721c24;
    display: block;
}

.permission-status.default {
    background: linear-gradient(to bottom, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    color: #0c5460;
    display: block;
}

/* Downloads Section */
.downloads-list {
    margin: 0;
}

.downloads-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-item {
    margin: 2px 0;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.15s ease;
}

.download-item:hover {
    transform: translateX(2px);
}

.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: all 0.15s ease;
    font-weight: 400;
    font-size: 12px;
}

.download-link:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d8d8d8 100%);
    border-color: #a0a0a0;
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.download-name {
    flex: 1;
    font-size: 12px;
}

.download-link:hover .download-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}
