* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #313338;
    color: #dbdee1;
}

.screen {
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #313338;
}

.login-box {
    background: #2b2d31;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.24);
    width: 100%;
    max-width: 480px;
    animation: scaleIn 0.3s ease-out;
}

.login-box h1 {
    margin-bottom: 8px;
    color: #f2f3f5;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.login-subtitle {
    text-align: center;
    color: #b5bac1;
    font-size: 16px;
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #1e1f22;
    border-radius: 3px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #1e1f22;
    color: #dbdee1;
}

.login-box input:focus {
    outline: none;
    border-color: #5865f2;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #5865f2;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.17s ease;
    margin-top: 10px;
}

.login-box button:hover {
    background: #4752c4;
}

.login-box button:active {
    background: #3c45a5;
}

.error {
    color: #f23f42;
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
    animation: slideUp 0.2s ease;
    background: #2b2d31;
    padding: 10px;
    border-radius: 3px;
    border-left: 4px solid #f23f42;
}

#app-screen {
    animation: fadeIn 0.3s ease-in;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: #2b2d31;
    padding: 16px 20px;
    box-shadow: 0 1px 0 rgba(4,4,5,0.2), 0 1.5px 0 rgba(6,6,7,0.05), 0 2px 0 rgba(4,4,5,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

header h1 {
    color: #f2f3f5;
    font-size: 16px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    color: #b5bac1;
    font-weight: 500;
    font-size: 14px;
    padding: 4px 8px;
    background: #1e1f22;
    border-radius: 3px;
}

.user-info button {
    padding: 6px 12px;
    background: #da373c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.17s ease;
}

.user-info button:hover {
    background: #a12d30;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    background: #2b2d31;
    padding: 16px 8px;
    overflow-y: auto;
    border-right: 1px solid #1e1f22;
    animation: slideUp 0.3s ease-out;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    color: #949ba4;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 8px;
    margin-bottom: 8px;
}

.sidebar-item {
    padding: 6px 8px;
    margin: 1px 0;
    border-radius: 4px;
    cursor: pointer;
    color: #b5bac1;
    font-size: 16px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-item:hover {
    background: #35373c;
    color: #dbdee1;
}

.sidebar-item.active {
    background: #404249;
    color: #f2f3f5;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.toolbar {
    background: #313338;
    padding: 16px 20px;
    border-bottom: 1px solid #1e1f22;
    display: flex;
    gap: 8px;
    animation: slideUp 0.3s ease-out 0.1s both;
}

.toolbar button {
    padding: 8px 16px;
    background: #5865f2;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.17s ease;
}

.toolbar button:hover {
    background: #4752c4;
}

.toolbar button:active {
    background: #3c45a5;
}

.toolbar button.secondary {
    background: #4e5058;
}

.toolbar button.secondary:hover {
    background: #5c5e66;
}

.toolbar button.danger {
    background: #da373c;
}

.toolbar button.danger:hover {
    background: #a12d30;
}

.user-selector {
    margin-left: auto;
    padding: 8px 12px;
    background: #1e1f22;
    border: 1px solid #1e1f22;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #dbdee1;
    cursor: pointer;
    transition: border-color 0.17s ease;
}

.user-selector:hover {
    border-color: #5865f2;
}

.user-selector:focus {
    outline: none;
    border-color: #5865f2;
}

.breadcrumb {
    padding: 12px 20px;
    color: #949ba4;
    font-size: 14px;
    font-weight: 500;
    background: #313338;
    border-bottom: 1px solid #1e1f22;
    animation: slideUp 0.3s ease-out 0.15s both;
}

.breadcrumb span {
    color: #dbdee1;
    cursor: pointer;
}

.breadcrumb span:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out 0.2s both;
}

.file-list {
    background: #313338;
    min-height: 100%;
}

.file-item {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s ease;
    animation: slideUp 0.2s ease-out;
    border-radius: 4px;
    margin: 2px 8px;
}

.file-item:hover {
    background: #2b2d31;
}

.file-item.selected {
    background: #404249;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #f2f3f5;
    font-size: 16px;
}

.file-meta {
    font-size: 12px;
    color: #949ba4;
    margin-top: 2px;
}

.file-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.file-actions button {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.17s ease;
}

.btn-download {
    background: #248046;
    color: white;
}

.btn-download:hover {
    background: #1a6334;
}

.btn-rename {
    background: #5865f2;
    color: white;
}

.btn-rename:hover {
    background: #4752c4;
}

.btn-move {
    background: #4e5058;
    color: white;
}

.btn-move:hover {
    background: #5c5e66;
}

.btn-delete {
    background: #da373c;
    color: white;
}

.btn-delete:hover {
    background: #a12d30;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #6d6f78;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.context-menu {
    position: fixed;
    background: #111214;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.24);
    z-index: 1000;
    min-width: 180px;
    animation: scaleIn 0.1s ease-out;
}

.context-menu-item {
    padding: 8px 12px;
    color: #b5bac1;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s ease;
}

.context-menu-item:hover {
    background: #5865f2;
    color: white;
}

.context-menu-item.danger:hover {
    background: #da373c;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #2b2d31;
}

::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border: 4px solid #2b2d31;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e1f22;
}
