/* 会議コスト計算機 - スタイルシート */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-small: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ヘッダー */
header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.icon {
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.language-selector {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1em;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* セクション */
section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    box-shadow: var(--shadow-hover);
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 参加者設定 */
.participant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--background);
    border-radius: var(--radius-small);
    transition: var(--transition);
}

.participant-item:hover {
    transform: translateX(5px);
}

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

.participant-name {
    font-weight: 600;
    color: var(--primary-color);
}

.participant-role {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.participant-rate {
    color: var(--success-color);
    font-weight: 500;
}

.add-btn, .remove-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.remove-btn {
    background: var(--danger-color);
    padding: 8px 16px;
    font-size: 0.9em;
}

.remove-btn:hover {
    background: #c0392b;
}

.btn-icon {
    font-size: 1.1em;
}

/* クイック設定 */
.quick-setup {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.quick-setup h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.preset-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.preset-btn {
    background: var(--background);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 150px;
}

.preset-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* タイマーセクション */
.timer-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    color: white;
    margin-bottom: 30px;
}

.time {
    font-size: 4em;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.cost-display {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cost-amount {
    font-size: 2em;
    font-weight: 600;
    color: #ffd700;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.control-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.start {
    background: var(--success-color);
    color: white;
}

.control-btn.pause {
    background: var(--warning-color);
    color: white;
}

.control-btn.stop {
    background: var(--danger-color);
    color: white;
}

.cost-rate {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* 統計セクション */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: var(--background);
    border-radius: var(--radius-small);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card.warning {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
}

/* 効率スコア */
.efficiency-score {
    background: var(--background);
    padding: 30px;
    border-radius: var(--radius-small);
}

.efficiency-score h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.score-meter {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.score-fill {
    height: 100%;
    width: 0%;
    background: var(--success-color);
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 20px;
}

.score-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1.2em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.score-advice {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* レポートセクション */
.report-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.report-btn {
    flex: 1;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.meeting-history h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius-small);
    border-left: 4px solid var(--secondary-color);
}

.history-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.history-stats {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ヒントセクション */
.tips-carousel {
    background: #e3f2fd;
    padding: 20px;
    border-radius: var(--radius-small);
    text-align: center;
    font-size: 1.1em;
    color: var(--primary-color);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-small);
    font-size: 1em;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn,
.cancel-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-small);
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn {
    background: var(--success-color);
    color: white;
}

.submit-btn:hover {
    background: #229954;
}

.cancel-btn {
    background: var(--background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cancel-btn:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition);
    z-index: 2000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* フッター */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.privacy-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-links a:hover {
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .time {
        font-size: 3em;
    }
    
    .cost-amount {
        font-size: 1.5em;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .control-btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-btn {
        width: 100%;
    }
    
    .history-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* プリント対応 */
@media print {
    body {
        background: white;
    }
    
    header,
    .language-selector,
    .timer-controls,
    .report-actions,
    footer {
        display: none;
    }
    
    section {
        box-shadow: none;
        break-inside: avoid;
    }
}