/* カスタムスタイル */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1100;
}

.navbar .dropdown-menu {
    z-index: 1200;
}

.navbar-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 56px;
    line-height: 0;
}

.navbar-brand .brand-logo {
    height: 100%;
    width: auto;
    display: block;
    border: none;
    box-shadow: none;
}

.navbar.bg-primary {
    background-color: #1A237E !important;
    border-bottom: none;
}

.navbar.bg-primary .nav-link,
.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .navbar-toggler {
    color: #f8f9fa !important;
    border-color: transparent;
}

.navbar.bg-primary .nav-link:hover,
.navbar.bg-primary .nav-link:focus {
    color: #ffffff !important;
}

.navbar.bg-primary .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.display-1 {
    margin-bottom: 1rem;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.text-primary {
    color: #0d6efd !important;
}

/* ローディングアニメーション */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* フォームスタイル */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 教室管理用スタイル */
.classroom-card {
    transition: all 0.2s ease-in-out;
    margin-bottom: 1rem;
}

.classroom-card:hover {
    transform: translateY(-2px);
}

.classroom-card.border-primary {
    border-color: #0d6efd !important;
    border-width: 2px !important;
}

#classroomSelector {
    min-width: 200px;
}

#currentClassroomSelect {
    border-color: #dee2e6;
    background-color: rgba(255, 255, 255, 0.9);
}

/* 権限制御用スタイル */
.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.8-.77L4.25 7l-.25.25L2.3 6.73zm-.86-2.44.8-.77L2.24 4l-.25.25-.86-.77zm2.5-.75 2.45-2.45L7.18 1l-.77.8-1.63 1.62L4.03 4.18l-.75-.75z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* アラートスタイル */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* ダッシュボードスタイル */
.dashboard-card {
    border-left: 4px solid #0d6efd;
}

.dashboard-card.success {
    border-left-color: #198754;
}

.dashboard-card.warning {
    border-left-color: #ffc107;
}

.dashboard-card.danger {
    border-left-color: #dc3545;
}

/* チャートコンテナ */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ユーティリティクラス */
.text-muted {
    color: #6c757d !important;
}

.small {
    font-size: 0.875em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}
