* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1a2332 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    animation: particleMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

#loginForm {
    max-width: 450px;
    margin-top: 80px;
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #0f3460;
    animation: pulse 2s ease-in-out infinite;
}

.logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(15, 52, 96, 0.3));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#loginForm h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    z-index: 1;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

#authForm input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

#authForm input:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 52, 96, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.copyright {
    margin-top: 30px;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-small {
    width: 40px;
    height: 40px;
    color: #0f3460;
}

.logo-small svg {
    width: 100%;
    height: 100%;
}

.header h1 {
    color: #1a1a2e;
    font-size: 28px;
    margin: 0;
}

.header-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.btn-logout {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.breadcrumb {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    color: #666;
    border: 1px solid #e0e0e0;
}

.breadcrumb span {
    cursor: pointer;
    color: #0f3460;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.breadcrumb span:hover {
    background: rgba(15, 52, 96, 0.1);
    color: #16213e;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.file-item {
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 52, 96, 0.1), transparent);
    transition: left 0.5s;
}

.file-item:hover::before {
    left: 100%;
}

.file-item:hover {
    border-color: #0f3460;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 52, 96, 0.2);
}

.file-item.folder {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: #ffc107;
}

.file-item.folder:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-color: #ffb300;
}

.file-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    color: #0f3460;
}

.file-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.file-item.folder .file-icon {
    color: #ffc107;
}

.file-name {
    word-break: break-word;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
}

.file-content {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon-large {
    width: 32px;
    height: 32px;
    color: #0f3460;
}

.file-icon-large svg {
    width: 100%;
    height: 100%;
}

.content-header h2 {
    color: #1a1a2e;
    font-size: 20px;
    margin: 0;
}

.btn-close {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-close svg {
    width: 20px;
    height: 20px;
}

.btn-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

#contentDisplay {
    background: #1a1a2e;
    color: #00ff00;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    max-height: 500px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #0f3460;
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fadbd8 0%, #f8d7da 100%);
    border-radius: 10px;
    display: none;
    border-left: 4px solid #e74c3c;
    font-weight: 500;
}

.error.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #999;
    font-size: 14px;
}
