/* Clean SCP Foundation Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow: hidden;
    height: 100vh;
}

.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Login Screen */
#login-screen {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
}

.login-header {
    background: #fff;
    border-bottom: 3px solid #d32f2f;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scp-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-symbol {
    font-size: 48px;
    color: #d32f2f;
    font-weight: bold;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.logo-motto {
    font-size: 14px;
    color: #666;
    letter-spacing: 4px;
    font-weight: 300;
}

.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.version-info {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #d32f2f;
}

.input-group input[readonly] {
    background: #f8f8f8;
    color: #666;
}

.login-status {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.status-text {
    color: #666;
    font-size: 14px;
}

.status-text.success {
    color: #2e7d32;
}

.status-text.loading {
    color: #f57c00;
}

.login-footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

/* Desktop Screen */
#desktop-screen {
    background: #f0f0f0;
}

.desktop-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.system-menu {
    background: #d32f2f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.current-time {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.user-info {
    font-size: 14px;
    color: #555;
}

.logout-btn {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background: #555;
}

.desktop-main {
    flex: 1;
    padding: 30px;
    overflow: auto;
}

.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 30px;
    max-width: 1000px;
}

.desktop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.desktop-item:hover {
    background: rgba(211, 47, 47, 0.1);
    transform: translateY(-2px);
}

.item-icon {
    font-size: 48px;
    margin-bottom: 10px;
    filter: grayscale(20%);
}

.item-label {
    font-size: 12px;
    text-align: center;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.desktop-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
}

.status-bar {
    display: flex;
    gap: 30px;
    font-size: 12px;
}

.status-indicator {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Window Styles */
.window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.window-header {
    background: #f8f8f8;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    cursor: move;
}

.window-title {
    font-weight: 600;
    color: #333;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #f0f0f0;
}

.control-btn.close:hover {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.window-toolbar {
    background: #f8f8f8;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #ddd;
}

.toolbar-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: #f0f0f0;
}

.address-bar {
    flex: 1;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 12px;
    color: #555;
    border-radius: 3px;
}

.window-content {
    flex: 1;
    padding: 20px;
    overflow: auto;
    background: #fff;
}

/* File List Styles */
.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-item:hover {
    background: #f0f0f0;
    border-color: #d32f2f;
}

.file-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.file-item-details {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-info {
    font-size: 11px;
    color: #888;
}

/* Access Denied Styles */
.access-denied {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.access-denied-icon {
    font-size: 64px;
    color: #d32f2f;
    margin-bottom: 20px;
}

.access-denied h2 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-weight: 600;
}

.access-denied p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.access-warning {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 6px;
    padding: 15px;
    margin-top: 30px;
    font-size: 12px;
    color: #e65100;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #d32f2f;
    padding: 16px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    color: #333;
    max-width: 350px;
    z-index: 10000;
    animation: slideInNotification 0.4s ease-out;
}

.notification.success {
    border-left-color: #2e7d32;
}

.notification.error {
    border-left-color: #d32f2f;
}

.notification.warning {
    border-left-color: #f57c00;
}

/* Animations */
@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px;
    }
    
    .item-icon {
        font-size: 36px;
    }
    
    .item-label {
        font-size: 11px;
    }
    
    .window {
        width: 95vw;
        height: 85vh;
    }
    
    .menu-bar {
        padding: 0 10px;
        flex-wrap: wrap;
        height: auto;
        min-height: 50px;
    }
    
    .menu-left, .menu-right {
        gap: 10px;
    }
    
    .file-list {
        grid-template-columns: 1fr;
    }
}

.pdf-frame{
    width:100%;
    height:100%;
    border:0;
}
