/*
 * Admin Healing Theme
 * Based on Counseling Sheet Design
 */

:root {
    --healing-primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --healing-secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* Warning/Accent */
    --healing-info-gradient: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    --healing-success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --healing-sidebar-bg: #ffffff;
    --healing-bg: #f4f7f6;
    --healing-text-color: #333;
    --healing-border-radius: 12px;
    --healing-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--healing-bg);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--healing-text-color);
}

/* Navbar */
.navbar-healing {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05) !important;
}

.navbar-healing .navbar-brand {
    color: #5a5a5a !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-healing .nav-link {
    color: #777 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-healing .nav-link:hover {
    color: #764ba2 !important;
}

/* Sidebar */
#sidebarMenu {
    background-color: var(--healing-sidebar-bg) !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.03);
    border-right: none;
}

.sidebar .nav-link {
    color: #666;
    font-weight: 500;
    border-radius: 0 50px 50px 0;
    margin-right: 15px;
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: #764ba2 !important;
    background-color: #f0ecf7 !important;
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--healing-primary-gradient);
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1em;
    vertical-align: text-bottom;
}

/* Cards */
.card-healing {
    border: none;
    border-radius: var(--healing-border-radius);
    box-shadow: var(--healing-shadow);
    background: white;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-healing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header-healing {
    background: var(--healing-primary-gradient);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
}

.card-header-healing h6 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Buttons */
.btn-healing {
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-healing-primary {
    background: var(--healing-primary-gradient);
    color: white;
}

.btn-healing-primary:hover {
    filter: brightness(1.1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(118, 75, 162, 0.3);
}

.btn-healing-info {
    background: var(--healing-info-gradient);
    color: white;
}

.btn-healing-info:hover {
    filter: brightness(1.1);
    color: white;
}

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

.btn-healing-success:hover {
    filter: brightness(1.1);
    color: white;
}

/* Tables */
.table-healing {
    color: #555;
    background: white;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-healing thead th {
    background-color: #f8f9fa;
    color: #777;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding: 12px 15px;
    white-space: nowrap;
}

.table-healing tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table-healing tbody tr:last-child td {
    border-bottom: none;
}

.table-healing tbody tr:hover {
    background-color: #fafafa;
}

/* Page Title */
h1.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
}

h1.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: var(--healing-primary-gradient);
    border-radius: 5px;
}

/* Form Controls */
.form-control-healing {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fcfcfc;
}

.form-control-healing:focus {
    border-color: #8e62c1; /* roughly the middle of the primary gradient */
    background-color: white;
    box-shadow: 0 0 0 3px rgba(142, 98, 193, 0.1);
}

.form-label-healing {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Settings Page Specific */
#email-settings, #password-settings, #store-settings, #blog-settings, #system-settings {
    background-color: transparent !important;
}

.list-group-item-action.active {
    background: var(--healing-primary-gradient) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
}

.list-group-item-action:hover:not(.active) {
    background-color: #f0ecf7 !important;
    color: #764ba2 !important;
}

/* スマホ・タブレット表示調整 (max-width: 991px) */
@media (max-width: 991px) {
    /* ページタイトルのサイズ調整と余白確保 */
    h1.page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-left: 12px;
    }

    h1.page-title::before {
        width: 4px;
    }

    /* カードの余白調整 */
    .card-healing {
        border-radius: 8px; /* 少し角丸を小さく */
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 影を控えめに */
    }

    .card-header-healing {
        padding: 0.75rem 1rem; /* ヘッダーの高さを少し抑える */
    }

    .card-body {
        padding: 1rem; /* ボディのパディングを少し狭く */
    }

    /* フォーム要素の調整 */
    .form-control-healing, .form-select {
        font-size: 16px; /* iOS等のズーム防止 */
    }

    /* ボタングループの調整 */
    .btn-group .btn {
        padding: 0.375rem 0.5rem; /* ボタンのパディング調整 */
    }
}
