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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #000000;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Box */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border: 2px solid #000000;
    background-color: #ffffff;
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666666;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #666666;
}

/* File Input */
.form-group input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #000000;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-label:hover {
    background-color: #000000;
    color: #ffffff;
}

.file-name {
    margin-left: 15px;
    color: #666666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #000000;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary {
    width: 100%;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #000000;
}

.message.success {
    background-color: #f0f0f0;
}

.message.error {
    background-color: #f0f0f0;
    border-color: #000000;
}

.error-message {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    border: 2px solid #000000;
    color: #000000;
}

.info-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.info-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Sections */
.upload-section,
.files-section {
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #000000;
    background-color: #ffffff;
}

.upload-section h2,
.files-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000000;
}

.upload-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-form .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

.upload-form .btn {
    flex-shrink: 0;
}

/* File Table */
.file-table {
    width: 100%;
    border-collapse: collapse;
}

.file-table thead {
    background-color: #000000;
    color: #ffffff;
}

.file-table th,
.file-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #000000;
}

.file-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.file-table tbody tr:hover {
    background-color: #f0f0f0;
}

.no-files {
    padding: 20px;
    text-align: center;
    color: #666666;
}

/* Notes Section */
.notes-section {
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #000000;
    background-color: #ffffff;
}

.note-form {
    margin-bottom: 30px;
}

.note-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.note-form textarea:focus {
    outline: none;
    border-color: #666666;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-notes {
    padding: 20px;
    text-align: center;
    color: #666666;
}

.note-item {
    padding: 15px;
    border: 2px solid #000000;
    background-color: #f9f9f9;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #000000;
}

.note-date {
    font-size: 0.85rem;
    color: #666666;
}

.note-message {
    margin-bottom: 10px;
    line-height: 1.5;
}

.note-actions {
    text-align: right;
}

.btn-delete {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .login-box {
        margin: 50px auto;
        padding: 30px 20px;
        border-width: 1px;
    }
    
    .upload-section,
    .files-section {
        padding: 20px;
        border-width: 1px;
    }
    
    .upload-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upload-form .btn {
        width: 100%;
    }
    
    .file-table {
        font-size: 0.9rem;
    }
    
    .file-table th,
    .file-table td {
        padding: 8px;
    }
    
    /* Make table scrollable on mobile */
    .file-list {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.25rem;
    }
    
    .login-box {
        margin: 30px auto;
        padding: 20px 15px;
    }
    
    .file-table {
        font-size: 0.8rem;
    }
    
    .file-table th,
    .file-table td {
        padding: 6px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
