/* リセットスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体の設定 */
body,
html {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: #f4f7fa;
}

/* サイドバーのスタイル */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background-color: #161a2d;
    color: #fff;
    padding: 20px;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
    position: relative;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.sidebar ul li a:hover {
    background-color: #4f52ba;
}

.sidebar ul li.has-submenu > a::after {
    content: '\f105'; /* FontAwesomeの右向き矢印 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.sidebar ul li.has-submenu.active > a::after {
    transform: rotate(90deg);
}
/* サイドバーのアクティブなリンクのスタイル */
.sidebar ul li.active > a {
    background-color: #4f52ba; /* 好みの色に変更してください */
    color: #ffffff; /* テキスト色を変更したい場合 */
}
.sidebar a#settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar a#settings-toggle .fas {
    margin-left: auto;
}

/* ボトムナビゲーションのスタイル */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #161a2d;
    color: #fff;
    z-index: 1000;
}

.bottom-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-nav ul li {
    flex: 1;
    text-align: center;
}

.bottom-nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}

.bottom-nav ul li a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.bottom-nav ul li a:hover {
    background-color: #4f52ba;
}

/* 設定メニューのドロップダウン */
#bottom-settings-menu {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    background-color: #161a2d;
    z-index: 1001;
}

#bottom-settings-menu li {
    border-top: 1px solid #4f52ba;
}

#bottom-settings-menu li a {
    padding: 10px;
    color: #fff;
    text-decoration: none;
    display: block;
}

#bottom-settings-menu li a:hover {
    background-color: #4f52ba;
}

#settings-menu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

#settings-menu li {
    margin: 5px 0;
}

#settings-menu li a {
    font-weight: normal;
    font-size: 13px;
    padding: 8px;
}

#settings-menu li a:hover {
    background-color: #4f52ba;
}

.sidebar-bottom {
    margin-top: auto;
}

/* メインコンテンツのスタイル */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

/* ユーザー情報のスタイル */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 4px;
}

.user-info i {
    font-size: 24px;
    margin-right: 8px;
}

.user-name {
    font-size: 16px;
}

/* フッターのスタイル */
footer {
    position: fixed;
    bottom: 0;
    right: 0;
    text-align: center;
    width: calc(100% - 220px);
    padding: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* フラッシュメッセージ */
.flashes {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: fit-content;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.flashes li {
    margin-bottom: 10px;
    display: none;
}

.notification {
    background-color: #3273dc;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    opacity: 0.9;
}

.notification-content {
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
}

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    html {
        font-size: 14px;
    }
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 0px;
        width: 100vw;
    }

    footer {
        visibility: hidden;
    }

    .bottom-nav {
        display: block;
        height: 55px;
    }

    .flashes {
        position: absolute !important;
        bottom: 55px;
        right: 5px;
    }
}

.data-section {
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.data-section .title {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.data-section .table {
    margin-top: 20px;
}
.data-section p {
    font-size: 1.2em;
    color: #555;
}
