body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f6fa;
}
.container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-sizing: border-box;
}
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}
.menu-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-section-title {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #95a5a6;
    margin-bottom: 10px;
    padding-left: 15px;
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-item {
    margin-bottom: 5px;
}
.menu-link {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.95em;
}
.menu-link:hover {
    background: #34495e;
}
.menu-link.active {
    background: #3498db;
}
.content-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.data-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}
.data-card:hover {
    transform: translateY(-5px);
}
.data-info {
    padding: 15px;
}
.data-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: left;
}
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.action-button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.view-button {
    background: #3498db;
    color: white;
}
.edit-button {
    background: #2ecc71;
    color: white;
}
.delete-button {
    background: #e74c3c;
    color: white;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.image-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.image-preview {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background-color: #e0e0e0;
    margin: 0 auto 10px auto;
    display: block;
}
.image-info {
    padding: 15px;
    text-align: center;
}
.upload-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}
.file-input {
    margin-bottom: 10px;
}
.upload-button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.edit-fields input[type="text"], .edit-fields select {
    width: calc(100% - 22px);
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
}
.save-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* ログイン画面用CSS */
body.login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container.login {
    max-width: 400px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
h1.login {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input[type="password"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
.login-button {
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.login-button:hover {
    background: #45a049;
} 