/* Star rating styles */
.star-rating {
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s ease;
    display: inline-block;
    margin: 0 2px;
}

.star.filled {
    color: #ffc107;
}

.star:hover {
    color: #ffc107;
}

/* Table improvements */
.table th a {
    color: inherit;
    text-decoration: none;
}

.table th a:hover {
    text-decoration: underline;
}

/* Footer styling */
.footer {
    padding: 1rem 0;
    margin-top: 3rem;
}

/* Responsive iframe */
.ratio {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Button adjustments for RTL */
[dir="rtl"] .btn-group {
    direction: ltr;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Alert improvements */
.alert {
    border-radius: 0.375rem;
}

/* Card styling */
.card {
    border-radius: 0.375rem;
}

/* Navigation improvements */
.navbar-brand {
    font-weight: 600;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

/* Admin section specific */
.btn-group .btn {
    white-space: nowrap;
}

/* Loading state for stars (optional enhancement) */
.star-rating.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Wizard navigation */
.wizard-nav-header {
    padding: 1rem;
    font-size: 1.1rem;
}

.wizard-nav-footer {
    padding: 1rem;
}

.wizard-nav-header .btn,
.wizard-nav-footer .btn {
    min-width: 120px;
}

/* Keyboard navigation hint */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
    z-index: 1000;
}

[dir="rtl"] .keyboard-hint {
    right: auto;
    left: 20px;
}

/* Navbar Logo */
.navbar-logo {
    height: 36px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Adjust navbar brand padding for logo */
.navbar-brand {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

/* Responsive logo sizing */
@media (max-width: 576px) {
    .navbar-logo {
        height: 32px;
    }
}

/* Collapsible Note Panel */
.card-header .btn-link {
    color: inherit;
}

.card-header .btn-link:hover {
    opacity: 0.8;
}

.card-header .btn-link .bi-chevron-down {
    transition: transform 0.3s ease;
}

.card-header .btn-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* IsKan Badge */
.badge.bg-danger {
    font-size: 0.75rem;
}
