/* Drive Theme */
:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-50: #f5f5f5;
    --gray-100: #e5e5e5;
    --gray-200: #d4d4d4;
    --gray-300: #a3a3a3;
    --gray-400: #737373;
    --gray-500: #525252;
    --gray-600: #404040;
    --gray-700: #262626;
    --gray-800: #171717;
    
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success: #16a34a;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 48px;
}

.login-logo {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#password-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-fast);
    text-align: center;
}

#password-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-btn:hover {
    background: var(--accent-hover);
}

.login-error {
    margin-top: 16px;
    font-size: 13px;
    color: var(--danger);
    min-height: 20px;
}

.login-note {
    margin-top: 24px;
    font-size: 12px;
    color: var(--gray-400);
}

/* Drive Page */
.drive-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.drive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.drive-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-900);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.storage-info {
    font-size: 13px;
    color: var(--gray-500);
    padding: 8px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.logout-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: var(--gray-200);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

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

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toolbar-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-icon {
    font-size: 16px;
    font-weight: 400;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.crumb {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

.crumb:hover {
    color: var(--accent);
}

.crumb.current {
    color: var(--gray-700);
    font-weight: 500;
}

.crumb-sep {
    color: var(--gray-300);
}

/* File Container */
.file-container {
    flex: 1;
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.file-list-header {
    display: grid;
    grid-template-columns: 1fr 120px 140px 100px;
    gap: 16px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-100);
}

.file-list {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* File Items */
.file-item {
    display: grid;
    grid-template-columns: 1fr 120px 140px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray-50);
    transition: var(--transition-fast);
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: var(--gray-50);
}

.file-item.folder {
    cursor: pointer;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}

.file-size {
    font-size: 13px;
    color: var(--gray-500);
}

.file-date {
    font-size: 13px;
    color: var(--gray-500);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.action-btn.download {
    color: var(--accent);
    background: rgba(0, 102, 255, 0.08);
}

.action-btn.download:hover {
    background: rgba(0, 102, 255, 0.15);
}

.action-btn.delete {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

.action-btn.delete:hover {
    background: rgba(220, 38, 38, 0.15);
}

/* Empty State */
.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--gray-400);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--gray-800);
    color: var(--white);
    font-size: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .drive-header,
    .toolbar,
    .file-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .file-list-header {
        display: none;
    }
    
    .file-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    
    .file-size,
    .file-date {
        display: none;
    }
    
    .file-actions {
        grid-column: 2;
        grid-row: 1;
    }
}
