:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --background-color: #f5f7fa;
    --card-color: #ffffff;
    --text-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 20px;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100px;
    margin-right: 10px;
}

.admin-section {
    background: var(--card-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

#selectedSchoolTitle {
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button {
    padding: 10px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.button.logout {
    background: #e74c3c;
}

.button.search-btn {
    background: #e74c3c; /* 빨간색 */
    padding: 10px 30px; /* 크기 크게 */
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

.status-message.info { background: #cce5ff; color: #004085; }
.status-message.success { background: #d4edda; color: #155724; }
.status-message.error { background: #f8d7da; color: #721c24; }

.upload-status {
    margin-left: 10px;
    font-size: 14px;
    color: #666;
}

.school-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.school-item {
    background: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.school-item:hover {
    background: #e9ecef;
}

.student-list {
    width: 100%;
    border-collapse: collapse;
}

.student-list th, .student-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.student-list th {
    background: var(--secondary-color);
    color: white;
}

.back-button {
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--accent-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
}

.modal-close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.storage-item {
    position: relative;
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
}

.storage-item img, .storage-item video {
    width: 100%;
    height: auto;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.upload-area {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-area textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.excel-guide {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.group-upload-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.group-upload-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.storage-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.search-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-area input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-results div {
    margin: 5px 0;
}