/* CSS for the notes section */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    padding-top: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.upload-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.upload-section h3 {
    margin-top: 0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
}

.notes-list {
    margin-top: 20px;
}

.notes-category {
    margin-bottom: 30px;
}

.category-title {
    background-color: #eee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.note-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.note-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.note-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.note-actions {
    display: flex;
    justify-content: space-between;
}

.download-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.download-btn:hover {
    background-color: #0b7dda;
}

.note-delete {
    background-color: #f44336;
}

.note-delete:hover {
    background-color: #d32f2f;
}

.admin-only {
    display: none;
}

.admin-mode .admin-only {
    display: block;
}

.search-bar {
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-options select {
    flex-grow: 1;
}

.toggle-admin {
    background-color: #ff9800;
    margin-left: auto;
}

.toggle-admin:hover {
    background-color: #e68a00;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .notes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-admin {
        margin-top: 10px;
        margin-left: 0;
    }

    .filter-options {
        flex-direction: column;
    }
}