/* 基本スタイル */
:root {
    --primary-color: chocolate;
    --border-color: #dee2e6;
    --sidebar-width: 180px;
}

body {
    margin: 0;
    padding: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* レイアウト */
#main {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

/* サイドバー */
#sidebar {
    width: var(--sidebar-width);
    box-sizing: border-box;
    padding-right: 5px;
    margin-right: 15px;
    border-right: 2px solid var(--primary-color);
    list-style: none;
    padding-left: 0;
}

/* メインコンテンツ */
#content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* カメラ関連 */
#video {
    width: 300px;
    height: auto;
}

#upload, #capture {
    width: 150px;
}

#photo-preview {
    max-width: 300px;
}

/* フォーム要素 */
input, select {
    margin-bottom: 1rem;
}

button {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* メッセージ表示 */
#error-message, #success-message {
    display: none;
    margin: 1rem 0;
}

#error-message {
    color: red;
}

#success-message {
    color: green;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #main {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        margin-right: 0;
        border-right: none;
        border-bottom: none;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
    }

    #video, #photo-preview {
        width: 100%;
        max-width: none;
    }

    #upload, #capture {
        width: 100%;
    }
} 