/* UI要素のスタイル */

/* UIオーバーレイ */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* 共通パネルスタイル */
.panel {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

/* ステータスパネル */
.status-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 時刻パネル */
.time-panel {
    position: absolute;
    top: 345px;
    left: 13px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-info {
    font-size: 12px;
    margin-top: 5px;
    color: #ccc;
}

/* 操作説明 */
.controls {
    position: absolute;
    top: 160px;
    left: 13px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ダイアログ */
.dialogue {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 600px;
    text-align: center;
    display: none;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* モード切替ボタン */
.mode-toggle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 100, 0.9);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mode-toggle:hover {
    background: rgba(70, 70, 120, 0.9);
    transform: translateX(-50%) scale(1.05);
}

/* 場所移動コントロール */
.view-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-button {
    display: block;
    width: 120px;
    margin: 5px 0;
    padding: 8px 15px;
    background: rgba(100, 100, 200, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.view-button:hover {
    background: rgba(120, 120, 220, 0.9);
    transform: translateX(5px);
}

.view-button:active {
    transform: translateX(5px) scale(0.95);
}

/* ステータスバー */
.hp-bar,
.hydration-bar,
.temp-bar {
    width: 150px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 3px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.hydration-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #03DAC6);
    transition: width 0.3s ease;
}

.temp-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.temp-fill.temp-normal {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.temp-fill.temp-warm {
    background: linear-gradient(90deg, #FF9800, #FFC107);
}

.temp-fill.temp-fever {
    background: linear-gradient(90deg, #FF5722, #FF7043);
}

.temp-fill.temp-danger {
    background: linear-gradient(90deg, #F44336, #E57373);
    animation: pulse 1s infinite;
}

/* ステータスパネルのスタイル調整 */
.status-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    min-width: 200px;
}


/* ★ 新規追加: 日陰ステータス */
.shade-status {
    font-weight: bold;
    margin-top: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
    transition: all 0.3s ease;
}

.shade-status.in-shade {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.shade-status.in-sun {
    color: #FF9800;
    background-color: rgba(255, 152, 0, 0.2);
}