* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #ffffff;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
}

.actions {
    display: flex;
    gap: 1rem;
    position: relative;
}

.circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.circle-btn:hover {
    background: #f1f5f9;
    border-color: #2563eb;
}

.profile-container {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 100;
}

.profile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.profile-menu a:last-child {
    border-bottom: none;
}

.profile-menu a:hover {
    background: #f1f5f9;
}

.hidden {
    display: none;
}

/* Основной контент */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Формы входа/регистрации */
.auth-form {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #2563eb;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-form button:hover {
    background: #1d4ed8;
}

.auth-form .switch {
    margin-top: 1rem;
    text-align: center;
    color: #64748b;
}

.auth-form .switch a {
    color: #2563eb;
    text-decoration: none;
}

/* Личный кабинет */
.file-list {
    margin-top: 2rem;
}

.file-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.file-item .filename {
    font-weight: 500;
}

.file-item .size {
    color: #64748b;
}

.file-item .date {
    color: #64748b;
}

.file-item .downloads {
    color: #2563eb;
}

.file-item .actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.file-item .actions button:hover {
    background: #f1f5f9;
}

.upload-area {
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: border 0.2s;
}

.upload-area:hover {
    border-color: #2563eb;
}

.upload-area input {
    display: none;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #64748b;
}