* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.container.wide {
    max-width: 700px;
}

h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover {
    background: #f0f0ff;
}

.nav a.active {
    background: #667eea;
    color: white;
}

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

label {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #ff4757;
    padding: 8px 12px;
    width: auto;
    font-size: 14px;
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffe0e0;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #e0ffe0;
    color: #080;
    border: 1px solid #cfc;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f8ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #f0f0ff;
}

.upload-area input[type="file"] {
    display: none;
}

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

.upload-text {
    color: #666;
    font-size: 16px;
}

.upload-text span {
    color: #667eea;
    font-weight: 500;
}

.file-name {
    margin-top: 12px;
    color: #333;
    font-weight: 500;
}

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.file-info .name {
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.file-info .size {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

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

.file-actions a {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.file-actions a:hover {
    background: #5a6fd6;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

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

.user-info {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.user-info a {
    color: #667eea;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}
