﻿/* =========================================================
   SIDEBAR — Unified for all Portals
   Applies to: Skill Portal / Executive Portal / Consultant Portal /
               Curriculum Portal / RagAdmin Portal
   ========================================================= */

/* Base layout */
.sidebar {
    width: 240px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 1.5rem 1rem;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

    .sidebar-brand .brand-logo {
        font-family: 'Poppins', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #222;
    }

/* Navigation */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

    .sidebar .nav-link i {
        font-size: 1rem;
        opacity: 0.85;
    }

    /* Hover */
    .sidebar .nav-link:hover {
        background-color: #f0f0f0;
        color: #000;
    }

    /* Active state */
    .sidebar .nav-link.active {
        background-color: #e3e3e3;
        font-weight: 600;
    }

/* Divider */
.sidebar .nav-divider {
    margin: 1rem 0;
    height: 1px;
    background-color: #e5e5e5;
}

/* Content area (standard) */
.content-area {
    margin-left: 240px;
    padding: 2rem;
}

/* Mobile対応 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .content-area {
        margin-left: 0;
        padding: 1.5rem;
    }
}
