/* Global Styles */

/* From index.php - Dashboard */
/* Dashboard Scaling */
.dashboard-compact {
    font-size: 0.85rem;
}

.dashboard-compact #liveClock {
    font-size: 1.8rem !important;
}

.dashboard-compact .display-6 {
    font-size: 1.5rem !important;
}

.dashboard-compact .display-2 {
    font-size: 2.5rem !important;
}

.dashboard-compact .glass-panel {
    padding: 1rem !important;
}

.dashboard-compact .ana-kart {
    padding: 1.5rem !important;
}

.dashboard-compact .h6 {
    font-size: 1rem !important;
}

/* From ogrenciler.php - Student Management */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-border-primary:hover {
    border-color: var(--ana-renk) !important;
}

.bg-glass-light {
    background: rgba(255, 255, 255, 0.1);
}

.bg-glass-dark {
    background: rgba(0, 0, 0, 0.2);
}

/* Scaling Fixes */
.compact-layout {
    font-size: 0.70rem;
}

.compact-layout h1,
.compact-layout h2,
.compact-layout h3,
.compact-layout h4,
.compact-layout h5,
.compact-layout h6 {
    font-size: 0.95rem !important;
}

.compact-layout #liveTime {
    font-size: 1.5rem !important;
}

.compact-layout .glass-panel {
    padding: 1rem !important;
}

.compact-layout .form-control {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem !important;
}

.compact-layout .btn:not(.btn-lg) {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.compact-layout .input-group-text {
    padding: 0.5rem 0.75rem !important;
}

.compact-layout table td,
.compact-layout table th {
    padding: 0.5rem 0.75rem !important;
}

.compact-layout .rounded-5 {
    border-radius: 1.5rem !important;
}

.compact-layout aside .glass-panel.p-4 {
    padding: 0.75rem !important;
}

.compact-layout .rounded-5 {
    border-radius: 1.5rem !important;
}

.compact-layout aside .glass-panel.p-4 {
    padding: 0.75rem !important;
}

/* From satis.php - POS/Sales Page */
.active-brand-btn {
    background: var(--ana-renk) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.card-product:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-3px);
}

/* Scaling Fixes */
.pos-container {
    font-size: 0.85rem;
}

.pos-container h4,
.pos-container h5,
.pos-container h6 {
    font-size: 0.95rem !important;
}

.pos-container .btn:not(.btn-lg) {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.pos-container .form-control {
    font-size: 0.85rem;
}

.card-product .fs-2 {
    font-size: 1.5rem !important;
}

.card-product h6 {
    font-size: 0.8rem !important;
}

#urunListesi {
    max-height: calc(100vh - 350px) !important;
}

.glass-panel {
    padding: 1rem !important;
}

#sepetIcerik {
    min-height: 260px !important;
}

.bg-black.bg-opacity-25.p-4 {
    padding: 1rem !important;
}

/* From veliler.php - Parent Management */
/* Note: veliler.php styles are largely identical to ogrenciler.php (glass-panel, compact-layout, etc.) 
       which are already included. Duplicate blocks are omitted or merged where identical. */

/* From veli-paneli.php - Parent Dashboard */
/* Note: veli-paneli.php glass-panel override is similar to others but let's include unique ones if any. 
       Arguments: glass-panel is already defined globally. */

/* From bakiye.php - Balance Inquiry Page */
.bakiye-compact {
    font-size: 0.8rem;
}

.bakiye-compact .display-1 {
    font-size: 2.5rem !important;
    /* Further reduced */
}

.bakiye-compact .display-3 {
    font-size: 1.8rem !important;
    /* Further reduced */
}

.bakiye-compact .card {
    padding: 1.5rem !important;
    /* Further reduced */
}

.bakiye-compact h2 {
    font-size: 1.2rem !important;
}

.bakiye-compact .input-group-lg {
    height: auto !important;
}

.bakiye-compact .form-control-lg,
.bakiye-compact #sorguNo {
    font-size: 1rem !important;
    padding: 0.6rem !important;
}

.bakiye-compact .btn-lg {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
}

.avatar-circle {
    width: 40px;
    height: 40px;
}

.avatar-circle .fs-4 {
    font-size: 1.1rem !important;
}

.glass-bg-5 {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Scrollable Content Area */
.scrollable-content {
    max-height: calc(100vh - 240px);
    /* Adjust based on header/padding */
    overflow-y: auto;
}

/* Custom Scrollbar */
.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#kategoriSekme li button {
    width: max-content;
}

.swal2-select option {
    background-color: #111;
    color: #fff;
}