/* ========================================
   LAC日報アプリ - モダンUIスタイルシート
   カラースキーム: より落ち着いた色調に変更
   ======================================== */

:root {
    /* Primary Colors - より落ち着いたネイビー系 */
    --primary-color: #4a5d7c;
    --primary-dark: #3a4d6c;
    --primary-light: #6a7d9c;
    
    /* Sidebar Colors */
    --sidebar-bg: #3d4757;
    --sidebar-hover: #2d3747;
    --sidebar-active: #4a5d7c;
    
    /* Accent Colors - 彩度を抑えた落ち着いた色 */
    --accent-green: #5a8a6f;
    --accent-blue: #5a8db8;
    --accent-red: #a64d4d;
    --accent-yellow: #d4a574;
    
    /* Neutral Colors */
    --background: #F7F8FA;
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --text-muted: #A0AEC0;
    --border-color: #E2E8F0;
    
    /* Status Colors - 落ち着いたトーン */
    --success-color: #5a8a6f;
    --warning-color: #d4a574;
    --danger-color: #a64d4d;
    --info-color: #5a8db8;
    
    /* Shadows - より柔らかく */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* ========================================
   General Styles
   ======================================== */

* {
    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;
}

/* ========================================
   Layout Components
   ======================================== */

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-hover) 100%);
    color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.sidebar-logo i {
    font-size: 28px;
}

.sidebar-user {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

.sidebar-menu {
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: var(--sidebar-hover);
    color: #FFFFFF;
}

.menu-item.active {
    background-color: var(--sidebar-active);
    color: #FFFFFF;
    border-left: 4px solid var(--accent-green);
}

.menu-item i {
    font-size: 18px;
    width: 20px;
}

.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.top-navbar {
    background: #FFFFFF;
    padding: 16px 32px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-title i {
    color: var(--primary-color);
}

.content-wrapper {
    padding: 32px;
}

/* ========================================
   Card Components
   ======================================== */

.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.card.shadow {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.card-header.bg-primary {
    background: var(--primary-color);
    color: #FFFFFF;
    border-bottom: none;
}

.card-header h4,
.card-header h5,
.card-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* ========================================
   Form Components
   ======================================== */

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

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 124, 0.1);
    outline: none;
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 16px;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   Button Components
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--text-secondary);
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: var(--text-primary);
}

.btn-success {
    background: var(--success-color);
    color: #FFFFFF;
}

.btn-success:hover {
    background: #4a7a5f;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-primary);
}

.btn-warning:hover {
    background: #c49564;
}

.btn-danger {
    background: var(--danger-color);
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #963d3d;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #FFFFFF;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ========================================
   Alert Components
   ======================================== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.alert h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert p {
    margin: 0;
}

.alert-success {
    background-color: rgba(90, 138, 111, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-info {
    background-color: rgba(90, 141, 184, 0.1);
    border-color: var(--info-color);
    color: var(--info-color);
}

.alert-warning {
    background-color: rgba(212, 165, 116, 0.1);
    border-color: var(--warning-color);
    color: #8B6F47;
}

.alert-danger {
    background-color: rgba(166, 77, 77, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ========================================
   Dashboard Cards
   ======================================== */

.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.dashboard-card-icon.primary {
    background: rgba(74, 93, 124, 0.1);
    color: var(--primary-color);
}

.dashboard-card-icon.success {
    background: rgba(90, 138, 111, 0.1);
    color: var(--success-color);
}

.dashboard-card-icon.info {
    background: rgba(90, 141, 184, 0.1);
    color: var(--info-color);
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dashboard-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   Progress Steps
   ======================================== */

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 32px 0;
    padding: 0 20px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(74, 93, 124, 0.2);
}

.step-item.completed .step-circle {
    background: var(--success-color);
    color: #FFFFFF;
}

.step-label {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Slider Components
   ======================================== */

.slider-container {
    padding: 24px 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
    margin: 12px 0;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(74, 93, 124, 0.1);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(74, 93, 124, 0.1);
}

.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 12px;
}

/* ========================================
   Selection Modal
   ======================================== */

.selection-btn {
    margin-top: 8px;
    background: var(--background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    font-size: 14px;
}

.selection-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.selection-item {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.selection-item:hover {
    background: var(--background);
    border-color: var(--primary-color);
}

.selection-item.selected {
    background: rgba(74, 93, 124, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   Badge Components
   ======================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.badge.bg-primary {
    background: var(--primary-color);
    color: #FFFFFF;
}

.badge.bg-success {
    background: var(--success-color);
    color: #FFFFFF;
}

.badge.bg-info {
    background: var(--info-color);
    color: #FFFFFF;
}

.badge.bg-warning {
    background: var(--warning-color);
    color: var(--text-primary);
}

.badge.bg-danger {
    background: var(--danger-color);
    color: #FFFFFF;
}

.badge.bg-light {
    background: var(--background);
    color: var(--text-primary);
}

/* ========================================
   List Components
   ======================================== */

.list-group {
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item {
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
}

.list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.list-group-flush .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   Mobile Responsive
   ======================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .top-navbar {
        padding: 16px 16px 16px 60px;
    }
    
    .progress-steps {
        padding: 0 10px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.bg-light {
    background-color: var(--background) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

.text-center { text-align: center !important; }

.w-100 { width: 100% !important; }

.rounded { border-radius: 8px !important; }
/* ========================================
   🆕 Alert Notification System
   ======================================== */

/* Alert Badge (Notification Bell) */
.alert-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5a8db8 0%, #4a5d7c 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(90, 141, 184, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.alert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 141, 184, 0.4);
}

.alert-badge i {
    font-size: 18px;
}

.alert-badge .badge-count {
    background: white;
    color: #5a8db8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Alert Panel (Notification List) */
.alert-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    overflow: hidden;
    display: none;
}

.alert-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(to right, #f7f8fa, #ffffff);
}

.alert-panel-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.alert-panel-header .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.alert-panel-header .btn-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.alert-panel-body {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
    padding: 12px;
}

/* Alert Card */
.alert-card {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.alert-card.negative {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.08) 0%, rgba(255, 179, 71, 0.03) 100%);
    border-left: 4px solid #FFB347;
}

.alert-card.positive {
    background: linear-gradient(135deg, rgba(107, 196, 165, 0.08) 0%, rgba(107, 196, 165, 0.03) 100%);
    border-left: 4px solid #6BC4A5;
}

.alert-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-card.negative:hover {
    border-color: #FFB347;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.12) 0%, rgba(255, 179, 71, 0.06) 100%);
}

.alert-card.positive:hover {
    border-color: #6BC4A5;
    background: linear-gradient(135deg, rgba(107, 196, 165, 0.12) 0%, rgba(107, 196, 165, 0.06) 100%);
}

.alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.alert-content {
    flex-grow: 1;
}

.alert-content h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.alert-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-detail {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-detail:hover {
    background: var(--border-color);
}

/* Alert Detail Modal */
#alertDetailModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#alertDetailModal .modal-header {
    background: linear-gradient(to right, #f7f8fa, #ffffff);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
}

#alertDetailModal .modal-title {
    font-size: 18px;
    font-weight: 600;
}

#alertDetailModal .modal-body {
    padding: 24px;
}

#alertDetailModal .alert-message {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

#alertDetailModal.positive-modal .modal-content {
    border-top: 4px solid #6BC4A5;
}

/* Cause Selection Buttons */
.cause-options {
    display: grid;
    gap: 12px;
}

.cause-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    color: var(--text-primary);
}

.cause-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 93, 124, 0.05) 0%, rgba(74, 93, 124, 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cause-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.cause-btn span {
    font-weight: 500;
}

/* Advice Box */
.advice-box {
    background: linear-gradient(135deg, rgba(90, 141, 184, 0.08) 0%, rgba(90, 141, 184, 0.03) 100%);
    border-left: 4px solid var(--info-color);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.advice-box h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advice-box p {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.advice-box ul {
    margin-bottom: 8px;
    padding-left: 20px;
}

.advice-box ul li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Resolution Options */
.resolution-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resolution-options .btn {
    flex: 1;
    min-width: 140px;
}

/* Alert Toast Notification */
.alert-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #2D3748;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: bottom 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.alert-toast.show {
    bottom: 32px;
}

/* Alert History Card (for history page) */
.alert-history-card {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .alert-badge {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .alert-panel {
        top: 60px;
        right: 10px;
        width: calc(100vw - 20px);
    }
    
    .cause-options {
        grid-template-columns: 1fr;
    }
    
    .resolution-options {
        flex-direction: column;
    }
    
    .resolution-options .btn {
        width: 100%;
    }
}

/* ==========================================
   いらっしゃいコメント（Welcome Notifications）
   ========================================== */

.welcome-section {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #E8EEF5;
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.welcome-icon {
    font-size: 28px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40%, 60% { transform: rotate(0deg); }
}

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Notification Card */
.notification-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 24px;
    border-radius: 20px;
    border-left: 5px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.notification-card.pending {
    border-left-color: #D4A574;
    background: white;
}

.notification-card.consulting {
    border-left-color: #5B5F97;
    background: white;
}

.notification-card.resolved {
    border-left-color: #6BC4A5;
    background: white;
    opacity: 0.8;
}

.notification-card.unresolved {
    border-left-color: #A64D4D;
    background: white;
}

.notification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-card.pending .notification-icon {
    background: rgba(212, 165, 116, 0.15);
    color: #D4A574;
}

.notification-card.consulting .notification-icon {
    background: rgba(91, 95, 151, 0.15);
    color: #5B5F97;
}

.notification-card.resolved .notification-icon {
    background: rgba(107, 196, 165, 0.15);
    color: #6BC4A5;
}

.notification-card.unresolved .notification-icon {
    background: rgba(166, 77, 77, 0.15);
    color: #A64D4D;
}

.notification-content {
    flex-grow: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 12px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

.notification-message {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.notification-footer {
    margin-top: 12px;
}

.btn-detail {
    background: none;
    border: none;
    color: #5B5F97;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-detail:hover {
    color: #4A4D7C;
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.consulting {
    background: rgba(91, 95, 151, 0.12);
    color: #5B5F97;
}

.status-badge.resolved {
    background: rgba(107, 196, 165, 0.12);
    color: #4A8A6F;
}

.status-badge.unresolved {
    background: rgba(166, 77, 77, 0.12);
    color: #A64D4D;
}

/* Action Buttons */
.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.action-btn i {
    font-size: 14px;
}

.action-btn.consulting {
    border-color: #5B5F97;
    color: #5B5F97;
}

.action-btn.consulting:hover:not(:disabled) {
    background: #5B5F97;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 95, 151, 0.2);
}

.action-btn.resolved {
    border-color: #6BC4A5;
    color: #4A8A6F;
}

.action-btn.resolved:hover:not(:disabled) {
    background: #6BC4A5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 196, 165, 0.2);
}

.action-btn.unresolved {
    border-color: #A64D4D;
    color: #A64D4D;
}

.action-btn.unresolved:hover:not(:disabled) {
    background: #A64D4D;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 77, 77, 0.2);
}

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

/* Toast Notification */
.notification-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transition: bottom 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.notification-toast.show {
    bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section {
        padding: 20px;
        margin-bottom: 28px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .notification-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .notification-icon {
        font-size: 24px;
    }
    
    .notification-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   Modal内のステータス管理ボタン
   ========================================== */

.status-management {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.status-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-btn {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.status-btn i {
    font-size: 16px;
}

.status-btn.consulting {
    border-color: #5B5F97;
    color: #5B5F97;
}

.status-btn.consulting:hover:not(:disabled):not(.active) {
    background: #5B5F97;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 95, 151, 0.2);
}

.status-btn.consulting.active {
    background: #5B5F97;
    color: white;
}

.status-btn.resolved {
    border-color: #6BC4A5;
    color: #4A8A6F;
}

.status-btn.resolved:hover:not(:disabled):not(.active) {
    background: #6BC4A5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 196, 165, 0.2);
}

.status-btn.resolved.active {
    background: #6BC4A5;
    color: white;
}

.status-btn.unresolved {
    border-color: #A64D4D;
    color: #A64D4D;
}

.status-btn.unresolved:hover:not(:disabled):not(.active) {
    background: #A64D4D;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166, 77, 77, 0.2);
}

.status-btn.unresolved.active {
    background: #A64D4D;
    color: white;
}

.status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .status-buttons {
        flex-direction: column;
    }
    
    .status-btn {
        width: 100%;
        min-width: auto;
    }
}

