/* 目標価格管理機能のCSS */

.target-price-section {
    padding: 20px;
}

.target-price-section h4 {
    color: #444;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

.current-price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.current-price-display .price {
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.target-price-row {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.target-price-row:hover {
    background: #e9ecef;
    border-color: #d1ecf1;
}

.target-price-row.bg-light.border-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
}

.target-price-row.bg-light.border-success:hover {
    background: #c3e6cb !important;
}

.target-price-input,
.target-type-select,
.target-memo-input {
    transition: border-color 0.3s ease;
}

.target-price-input:focus,
.target-type-select:focus,
.target-memo-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.add-target-price {
    text-align: center;
    padding: 20px 0;
}

.add-target-price .btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    transition: all 0.3s ease;
}

.add-target-price .btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    animation: pulse 2s infinite;
}

.badge-secondary {
    background: #6c757d;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .target-price-row .col-md-3,
    .target-price-row .col-md-4,
    .target-price-row .col-md-2 {
        margin-bottom: 15px;
    }
    
    .current-price-display {
        font-size: 16px;
    }
    
    .current-price-display .price {
        font-size: 20px;
    }
}

/* アニメーション効果 */
.target-price-row {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ボタンスタイル */
.btn-danger.btn-sm {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-danger.btn-sm:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: scale(1.1);
}

/* 空の状態のメッセージ */
.text-muted {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #6c757d;
}