/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    -ms-zoom: 0.75;
    -webkit-zoom: 0.75;
    -moz-transform: scale(0.75);
    -moz-transform-origin: 0 0;
}

/* Prevent text scaling in landscape */
@media screen and (orientation: landscape) {
    html {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #1e293b;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 130px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.1));
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-text p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-buttons {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.lang-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.lang-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
}

.login-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.login-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    gap: 2rem;
}

/* Sidebar Styles */
.sidebar {
    width: 380px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 4px 0 25px rgba(15, 23, 42, 0.08);
    border-right: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    position: static;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Sidebar no scroll needed - removed scrollbar styles */

.sidebar-toggle {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.toggle-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.sidebar-nav {
    padding: 1rem 0;
}

.menu-list {
    list-style: none;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.75rem;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
    transform: translateX(2px);
}

.menu-link:hover::before {
    transform: scaleY(1);
}

.menu-link.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left-color: #2563eb;
}

.menu-link.active::before {
    transform: scaleY(1);
}

.menu-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.menu-text {
    flex: 1;
    font-weight: 500;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.submenu.open {
    max-height: 1000px;
}

.submenu-item {
    position: relative;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.75rem 0.9rem 3.25rem;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu-link:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    transform: translateX(4px);
}

.submenu-link:hover::before {
    background: #3b82f6;
    transform: translateY(-50%) scale(1.5);
}

.submenu-level-2 {
    list-style: none;
    background: #e9ecef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu-level-2.open {
    max-height: 500px;
}

.submenu-level-2 li {
    border-bottom: 1px solid #dee2e6;
}

.submenu-level-2 li:last-child {
    border-bottom: none;
}

.submenu-level-2 a {
    display: block;
    padding: 0.6rem 1.5rem 0.6rem 4rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.submenu-level-2 a:hover {
    background: #dee2e6;
    color: #2a5298;
}

/* Main Content */
.main-content {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin-top: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.content-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.page-title h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.content-filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.75rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.content-body {
    padding: 2.5rem;
}

.welcome-section h3 {
    color: #1e293b;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    margin-bottom: 2.5rem;
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 20px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem;
    color: white;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 72px !important;
    min-height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
}

.stat-icon i {
    font-size: 1.75rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 72px !important;
    height: 72px !important;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 72px !important;
    height: 72px !important;
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    width: 72px !important;
    height: 72px !important;
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    width: 72px !important;
    height: 72px !important;
}

/* Her ikon için aynı boyut standardizasyonu */
.stat-card .stat-icon i.fa-chalkboard-teacher,
.stat-card .stat-icon i.fa-users-cog,
.stat-card .stat-icon i.fa-building,
.stat-card .stat-icon i.fa-warehouse {
    font-size: 1.75rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Stagger animation delays for stat cards */
.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Charts Section */
.charts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.charts-title {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.chart-card:nth-child(2) {
    animation-delay: 0.7s;
}

.chart-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-header h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.chart-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

.chart-container {
    position: relative;
    height: 350px;
    margin-top: 1rem;
}

.stat-info h4 {
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
}

.stat-description {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Responsive Design */
/* Mobile First Responsive Design */

/* Mobile Overlay for Sidebar */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Enhanced Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #334155;
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .main-container {
        gap: 1rem;
    }
    
    .sidebar {
        width: 320px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Table responsiveness for tablets */
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Header Mobile Adjustments */
    .header {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
        height: auto;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
        order: -1;
    }

    /* Mobile Sidebar */
    .sidebar {
        width: 100vw;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Sidebar Header for Mobile */
    .sidebar-header {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .sidebar-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #64748b;
        cursor: pointer;
        float: right;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .sidebar-close-btn:hover {
        background: rgba(100, 116, 139, 0.1);
        color: #334155;
    }

    /* Main Content Mobile */
    .main-content {
        margin: 0;
        padding: 1rem;
        width: 100%;
        min-height: calc(100vh - 70px);
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 0 1rem 0;
        margin-bottom: 1rem;
    }

    .page-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .content-filters {
        width: 100%;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 0.25rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
        max-width: 160px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        color: #334155;
        font-weight: 500;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.625rem center;
        background-repeat: no-repeat;
        background-size: 0.9rem;
        padding-right: 2.25rem;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 42px;
    }
    
    .filter-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 
            0 0 0 2px rgba(59, 130, 246, 0.1),
            0 2px 8px rgba(0, 0, 0, 0.08);
        background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
        transform: translateY(-1px);
    }
    
    .filter-select:hover {
        border-color: #94a3b8;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        transform: translateY(-0.5px);
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        text-align: center;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 1rem;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .stat-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-description {
        font-size: 0.85rem;
    }

    /* Menu Mobile Enhancements */
    .menu-link {
        padding: 1rem;
        font-size: 1rem;
        min-height: 56px; /* Touch-friendly */
        border-radius: 8px;
        margin: 0.25rem 0.5rem;
    }

    .menu-link i {
        font-size: 1.2rem;
        min-width: 24px;
    }

    /* Enhanced Mobile Submenu Styling */
    .submenu {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border-radius: 8px;
        margin: 0.25rem 0.5rem;
        border: 1px solid rgba(203, 213, 225, 0.3);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    }

    .submenu-link {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 6px;
        margin: 0.125rem 0.5rem;
        background: rgba(255, 255, 255, 0.7);
        border-left: 3px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .submenu-link:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
        border-left-color: #3b82f6;
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    }

    .submenu-link::before {
        left: 1.5rem;
        background: #94a3b8;
    }

    .submenu-link:hover::before {
        background: #3b82f6;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
    }

    /* Enhanced Mobile Level-2 Submenu */
    .submenu-level-2 {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
        border-radius: 6px;
        margin: 0.25rem 0.5rem;
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .submenu-level-2 a {
        padding: 0.75rem 1rem 0.75rem 3rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 4px;
        margin: 0.125rem 0.375rem;
        background: rgba(255, 255, 255, 0.8);
        border-left: 2px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .submenu-level-2 a:hover {
        background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
        border-left-color: #10b981;
        transform: translateX(3px);
        box-shadow: 0 1px 6px rgba(16, 185, 129, 0.1);
    }

    .submenu-level-2 li {
        border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    }

    .submenu-level-2 li:last-child {
        border-bottom: none;
    }

    /* Mobile Menu Active States */
    .menu-link.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .submenu-link.active {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border-left-color: #fbbf24;
    }

    .submenu-level-2 a.active {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        border-left-color: #fbbf24;
    }

    /* Table Mobile Responsiveness */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .data-table table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Performance Tables Mobile Optimization */
    .performance-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .performance-table {
        min-width: 700px;
    }

    /* Charts Mobile - Single Column Layout */
    .charts-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
        width: 100%;
    }

    .chart-card {
        width: 100%;
        margin: 0;
        padding: 1.5rem 1rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    
    .chart-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .chart-card:first-child {
        background: linear-gradient(135deg, #fef7f0 0%, #ffffff 100%);
        border-color: rgba(249, 115, 22, 0.2);
    }
    
    .chart-card:last-child {
        background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .chart-header {
        text-align: center;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    }
    
    .chart-header h4 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 0.5rem 0;
        background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .chart-card:first-child .chart-header h4 {
        background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .chart-subtitle {
        font-size: 0.9rem;
        color: #64748b;
        font-weight: 500;
        margin: 0;
    }

    .chart-container {
        height: 300px;
        position: relative;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .chart-container canvas {
        border-radius: 8px !important;
        max-height: 100% !important;
    }

    /* Welcome Section Mobile */
    .welcome-section h3 {
        font-size: 1.3rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
    }
    
    /* Charts Section Title Mobile */
    .charts-title {
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .charts-title h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .charts-title .charts-subtitle {
        font-size: 0.95rem;
        color: #64748b;
    }

    /* Mobile Charts Layout - Single Column for All 4 Charts */
    h3[style*="MYO İstatistikleri"] {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }
    
    /* 4 Chart Grid - Convert to Single Column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Individual Chart Cards */
    div[style*="grid-template-columns: 1fr 1fr"] > div {
        width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: visible !important;
        max-height: none !important;
    }
    
    /* Chart Card Hover Effect */
    div[style*="grid-template-columns: 1fr 1fr"] > div:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15) !important;
        border-color: rgba(59, 130, 246, 0.3) !important;
    }
    
    /* Öğrenci Chart - Blue Theme */
    div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(1) {
        background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
        border-color: rgba(59, 130, 246, 0.2) !important;
    }
    
    /* Akademik Personel Chart - Green Theme */
    div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(2) {
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
        border-color: rgba(16, 185, 129, 0.2) !important;
    }
    
    /* İdari Personel Chart - Orange Theme */
    div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(3) {
        background: linear-gradient(135deg, #fefbf2 0%, #ffffff 100%) !important;
        border-color: rgba(245, 158, 11, 0.2) !important;
    }
    
    /* Toplam Personel Chart - Red Theme */
    div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(4) {
        background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
        border-color: rgba(239, 68, 68, 0.2) !important;
    }
    
    /* Chart Titles Mobile */
    div[style*="grid-template-columns: 1fr 1fr"] h4 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    /* Chart Containers Mobile */
    div[style*="grid-template-columns: 1fr 1fr"] div[style*="height: 320px"] {
        height: 280px !important;
        position: relative !important;
        padding: 0.5rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
        margin-top: 0.5rem !important;
    }
    
    /* Canvas Elements Mobile */
    div[style*="grid-template-columns: 1fr 1fr"] canvas {
        border-radius: 8px !important;
        max-height: 100% !important;
    }
    
    /* Chart Icons Color Enhancement */
    div[style*="grid-template-columns: 1fr 1fr"] .fas.fa-user-graduate {
        color: #3b82f6 !important;
        font-size: 1.2rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] .fas.fa-chalkboard-teacher {
        color: #10b981 !important;
        font-size: 1.2rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] .fas.fa-users-cog {
        color: #f59e0b !important;
        font-size: 1.2rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] .fas.fa-users {
        color: #ef4444 !important;
        font-size: 1.2rem !important;
    }
}

/* Small Mobile Enhancements */
@media (max-width: 480px) {
    div[style*="grid-template-columns: 1fr 1fr"] > div {
        padding: 1.25rem 0.75rem !important;
        border-radius: 14px !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] h4 {
        font-size: 1rem !important;
        gap: 0.4rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] div[style*="height: 320px"] {
        height: 240px !important;
        padding: 0.25rem !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .submenu-arrow {
    display: none;
}

.sidebar.collapsed .submenu {
    display: none;
}

.sidebar.collapsed .menu-link {
    padding: 1rem;
    justify-content: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 90%;
    max-width: 420px;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2a5298;
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.login-submit-btn {
    width: 100%;
    background: #2a5298;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
    background: #1e3c72;
}

/* Data Table Styles */
.data-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.info-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2a5298;
}

/* Report Section */
.report-section {
    margin: 1.5rem 0;
}

.report-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: #2a5298;
    color: white;
}

.btn-primary:hover {
    background: #1e3c72;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2a5298;
    color: #2a5298;
}

.btn-outline:hover {
    background: #2a5298;
    color: white;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-item h5 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.report-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-info {
    background: #17a2b8;
}

.notification-warning {
    background: #ffc107;
    color: #333;
}

.notification-error {
    background: #dc3545;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Content Styles */
.page-content {
    padding: 1rem 0;
}

.page-content h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-description {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.page-description p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.page-description p:last-child {
    margin-bottom: 0;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
        min-height: 60px;
    }

    .header-left .logo-container {
        gap: 0.5rem;
    }

    .header-left .logo {
        width: 35px !important;
        height: 35px !important;
    }

    .header-left .logo-text h1 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .header-left .logo-text p {
        font-size: 8px !important;
        margin: 1px 0 0 0 !important;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .login-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    /* Sidebar adjustments for small screens */
    .sidebar {
        width: 100vw;
    }

    .main-content {
        padding: 0.75rem;
    }

    .content-header {
        padding: 0;
    }

    .page-title h2 {
        font-size: 1.3rem;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }

    /* Stats cards for small screens */
    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: 1.2rem;
    }

    .stat-info h4 {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-description {
        font-size: 0.8rem;
    }

    /* Menu adjustments for small screens */
    .menu-link {
        padding: 0.875rem;
        font-size: 0.95rem;
        min-height: 52px;
    }

    .menu-link i {
        font-size: 1.1rem;
    }

    /* Enhanced Small Mobile Submenu */
    .submenu {
        margin: 0.125rem 0.375rem;
        border-radius: 6px;
    }

    .submenu-link {
        padding: 0.75rem 0.875rem 0.75rem 2.25rem;
        font-size: 0.9rem;
        min-height: 44px;
        margin: 0.125rem 0.375rem;
        border-radius: 5px;
    }

    .submenu-link::before {
        left: 1.25rem;
    }

    .submenu-level-2 {
        margin: 0.125rem 0.375rem;
        border-radius: 5px;
    }

    .submenu-level-2 a {
        padding: 0.625rem 0.875rem 0.625rem 2.75rem;
        font-size: 0.85rem;
        min-height: 40px;
        margin: 0.125rem 0.25rem;
        border-radius: 3px;
    }

    /* Filter Select for small screens */
    .content-filters {
        gap: 0.375rem;
        justify-content: space-between;
        padding: 0 0.125rem;
    }

    .filter-select {
        flex: 1;
        min-width: 100px;
        max-width: 140px;
        padding: 0.4rem 0.625rem;
        font-size: 0.8rem;
        border-radius: 6px;
        background-size: 0.8rem;
        background-position: right 0.5rem center;
        padding-right: 2rem;
        min-height: 38px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Table optimization for very small screens */
    .data-table table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    /* Chart adjustments */
    .chart-container {
        height: 250px;
    }
    
    /* Improved Charts for Small Mobile */
    .charts-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .chart-card {
        padding: 1.25rem 0.75rem;
        border-radius: 16px;
    }
    
    .chart-header h4 {
        font-size: 1.1rem;
    }
    
    .chart-subtitle {
        font-size: 0.85rem;
    }
    
    .chart-container {
        height: 240px;
        padding: 0.25rem;
    }

    /* Welcome section for small screens */
    .welcome-section h3 {
        font-size: 1.3rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
    }

    /* Performance tables scroll hint */
    .performance-table-container::after {
        content: "→ Kaydırarak devamını görün";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #64748b;
        margin-top: 0.5rem;
        font-style: italic;
    }
}

/* Ultra Small Devices (very old phones) */
@media (max-width: 360px) {
    .sidebar {
        width: 100vw;
    }

    .main-content {
        padding: 0.5rem;
    }

    .header {
        padding: 0.5rem;
        min-height: 55px;
    }

    .page-title h2 {
        font-size: 1.1rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    /* Filter Select for ultra small screens */
    .content-filters {
        gap: 0.25rem;
        justify-content: space-between;
        padding: 0;
    }

    .filter-select {
        flex: 1;
        min-width: 85px;
        max-width: 115px;
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 5px;
        background-size: 0.7rem;
        background-position: right 0.4rem center;
        padding-right: 1.75rem;
        min-height: 34px;
        border-width: 1px;
    }

    /* Enhanced Ultra Small Mobile Submenu */
    .submenu {
        margin: 0.125rem 0.25rem;
        border-radius: 4px;
    }

    .submenu-link {
        padding: 0.625rem 0.75rem 0.625rem 2rem;
        font-size: 0.85rem;
        min-height: 40px;
        margin: 0.125rem 0.25rem;
        border-radius: 4px;
    }

    .submenu-link::before {
        left: 1rem;
        width: 3px;
        height: 3px;
    }

    .submenu-level-2 {
        margin: 0.125rem 0.25rem;
        border-radius: 4px;
    }

    .submenu-level-2 a {
        padding: 0.5rem 0.75rem 0.5rem 2.5rem;
        font-size: 0.8rem;
        min-height: 36px;
        margin: 0.125rem 0.125rem;
        border-radius: 3px;
    }

    .menu-link {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 48px;
        margin: 0.125rem 0.25rem;
        border-radius: 6px;
    }

    .chart-container {
        height: 220px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        min-height: 50px;
        padding: 0.5rem 1rem;
    }

    .sidebar {
        width: 100vw;
    }

    .main-content {
        padding: 0.75rem;
    }

    .content-filters {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .filter-select {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .chart-container {
        height: 200px;
    }

    /* Enhanced Landscape Mobile Submenu */
    .submenu {
        margin: 0.25rem 0.375rem;
        border-radius: 6px;
    }

    .submenu-link {
        padding: 0.75rem 0.875rem 0.75rem 2.25rem;
        font-size: 0.9rem;
        margin: 0.125rem 0.375rem;
        border-radius: 5px;
    }

    .submenu-level-2 {
        margin: 0.25rem 0.375rem;
        border-radius: 5px;
    }

    .submenu-level-2 a {
        padding: 0.625rem 0.875rem 0.625rem 2.75rem;
        font-size: 0.85rem;
        margin: 0.125rem 0.25rem;
        border-radius: 4px;
    }
}

/* Additional responsive improvements for existing styles */
@media (max-width: 768px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        border-radius: 16px;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
        width: 36px;
        height: 36px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Touch and Interaction Improvements */
@media (max-width: 768px) {
    /* Ensure all interactive elements are touch-friendly */
    button, 
    .btn, 
    .menu-link, 
    .submenu-link,
    .lang-btn,
    .login-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        touch-action: manipulation; /* Prevent double-tap zoom */
    }

    /* Improve form inputs for mobile */
    input[type="text"],
    input[type="password"],
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
        border-radius: 8px;
    }

    /* Smooth scrolling for performance tables */
    .performance-table-container {
        scroll-behavior: smooth;
    }

    /* Add visual feedback for touch */
    .menu-link:active,
    .submenu-link:active,
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Mobile User Actions in Sidebar */
.mobile-user-actions {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    margin-bottom: 1rem;
}

.mobile-user-section {
    margin-bottom: 1.5rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-user-info i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.mobile-user-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.mobile-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    min-height: 44px;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.mobile-login-btn:active {
    transform: translateY(0);
}

.mobile-language-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.mobile-lang-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.mobile-lang-label i {
    color: #3b82f6;
    font-size: 1rem;
}

.mobile-language-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-lang-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 44px;
}

.mobile-lang-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(2px);
}

.mobile-lang-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.mobile-lang-btn i {
    font-size: 0.85rem;
}

/* Hide header user actions on mobile and show sidebar ones */
@media (max-width: 768px) {
    .mobile-user-actions {
        display: block !important;
    }
    
    /* Hide header buttons on mobile */
    .header-right .language-buttons,
    .header-right .user-info {
        display: none !important;
    }
}

/* =================================
   CONTENT PAGES MOBILE OPTIMIZATION - ENHANCED
================================= */

/* Mobil cihazlarda container taşma sorunlarının çözümü */
@media (max-width: 768px) {
    /* Ana page-content container kesin genişlik kontrolü */
    .page-content {
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0.5rem !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Tüm içerik containerlarının genişlik kontrolü */
    .page-content > div {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ana kart container */
    .page-content > div[style*="max-width: 1200px"] {
        max-width: calc(100vw - 1rem) !important;
        margin: 0 0.5rem !important;
        overflow: hidden !important;
    }
    
    /* İç padding'leri kontrol et */
    .page-content div[style*="padding: 3rem"] {
        padding: 1rem 0.8rem !important;
    }
    
    /* Text overflow ve word wrapping - AGRESİF */
    .page-content * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    
    /* BAŞLIKLAR için özel kurallar */
    .page-content h1,
    .page-content h2,
    .page-content h3,
    .page-content h4,
    .page-content h5 {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        margin: 0.5rem 0 !important;
        padding: 0 !important;
    }
    
    /* UZUN METİNLER için */
    .page-content p,
    .page-content span,
    .page-content div {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        line-height: 1.5 !important;
    }
}

/* =================================
   CONTENT PAGES MOBILE OPTIMIZATION
================================= */

/* Yüksekokulumuz Tarihçesi Mobile Styles - Enhanced */
@media (max-width: 768px) {
    /* Timeline Ana Container - Taşma Önleme */
    .page-content div[style*="background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)"] {
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 12px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Timeline Line Mobile - Düzeltilmiş */
    .page-content div[style*="position: absolute; left: 2rem"] {
        left: 0.8rem !important;
        width: 2px !important;
    }
    
    /* Timeline Items Mobile - Genişlik Kontrolü */
    .page-content div[style*="margin-left: 5rem"] {
        margin-left: 2.5rem !important;
        max-width: calc(100% - 2.5rem) !important;
        overflow: hidden !important;
    }
    
    /* Timeline Icons Mobile - Pozisyon Düzeltme */
    .page-content div[style*="position: absolute; left: -5rem"] {
        left: -2.5rem !important;
        width: 1.8rem !important;
        height: 1.8rem !important;
    }
    
    .page-content div[style*="position: absolute; left: -5rem"] i {
        font-size: 0.7rem !important;
    }
    
    /* Timeline Content Cards Mobile - Taşma Önleme */
    .page-content div[style*="background: white; padding: 2rem"] {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Timeline Year Tags Mobile */
    .page-content span[style*="background: linear-gradient"] {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.8rem !important;
        margin-right: 0.8rem !important;
        border-radius: 16px !important;
    }
    
    /* Timeline Headers Mobile - AGRESİF TEXT BREAKING */
    .page-content h3[style*="color: #1e293b; font-size: 1.3rem"] {
        font-size: 1rem !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Timeline Content Text Mobile - AGRESİF TEXT BREAKING */
    .page-content p[style*="color: #475569; font-size: 1rem"] {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Summary Section Mobile */
    .page-content div[style*="background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%)"] {
        margin-top: 2rem !important;
        padding: 1.5rem !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlar için ekstra koruma */
    .page-content,
    .page-content * {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .page-content div[style*="background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)"] {
        padding: 0.8rem !important;
        margin: 0 !important;
    }
    
    .page-content div[style*="margin-left: 3rem"] {
        margin-left: 2.5rem !important;
    }
    
    .page-content div[style*="position: absolute; left: -3rem"] {
        left: -2.5rem !important;
        width: 1.8rem !important;
        height: 1.8rem !important;
    }
    
    .page-content div[style*="background: white; padding: 1.2rem"] {
        padding: 1rem !important;
    }
    
    .page-content h3[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
    
    .page-content p[style*="font-size: 0.9rem"] {
        font-size: 0.85rem !important;
    }
    
    .page-content span[style*="padding: 0.3rem 0.8rem"] {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

/* MYO Yönetimi Mobile Styles - Enhanced */
@media (max-width: 768px) {
    /* Management Cards Grid Mobile - Taşma Önleme */
    .page-content div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr))"] {
        display: block !important;
        gap: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Individual Management Cards Mobile - Genişlik Kontrolü */
    .page-content div[style*="background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border-radius: 16px; padding: 2rem"] {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Profile Image and Info Container Mobile */
    .page-content div[style*="display: flex; align-items: center; margin-bottom: 1.5rem"] {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 1.2rem !important;
    }
    
    /* Profile Images Mobile */
    .page-content img[style*="width: 100px; height: 100px"] {
        width: 80px !important;
        height: 80px !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
    }
    
    /* Management Names Mobile - AGRESİF TEXT BREAKING */
    .page-content h3[style*="color: #1e293b; font-size: 1.5rem"] {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        padding: 0 0.25rem !important;
        display: block !important;
    }
    
    /* Position Tags Mobile */
    .page-content div[style*="background: linear-gradient(135deg, #3b82f6"] {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 1rem !important;
        border-radius: 16px !important;
    }
    
    .page-content div[style*="background: linear-gradient(135deg, #10b981"] {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 1rem !important;
        border-radius: 16px !important;
    }
    
    .page-content div[style*="background: linear-gradient(135deg, #f59e0b"] {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 1rem !important;
        border-radius: 16px !important;
    }
    
    /* Contact Information Mobile */
    .page-content div[style*="display: flex; align-items: center; margin-bottom: 1rem"] {
        margin-bottom: 0.8rem !important;
        padding: 0.8rem !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .page-content div[style*="display: flex; align-items: center; padding: 1rem"] {
        padding: 0.8rem !important;
        border-radius: 8px !important;
    }
    
    /* Contact Links Mobile */
    .page-content a[href*="mailto"] {
        font-size: 0.9rem !important;
        word-break: break-all !important;
    }
    
    .page-content a[href*="avesis"] {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .page-content div[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }
    
    .page-content img[style*="width: 80px; height: 80px"] {
        width: 70px !important;
        height: 70px !important;
    }
    
    .page-content h3[style*="font-size: 1.2rem"] {
        font-size: 1.1rem !important;
    }
    
    .page-content div[style*="font-size: 0.8rem"] {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .page-content a[href*="mailto"] {
        font-size: 0.8rem !important;
    }
}

/* Yönetim Kurulu & Yüksekokul Kurulu Table Mobile Styles - Enhanced */
@media (max-width: 768px) {
    /* Table Container Mobile - Kesin Genişlik Kontrolü */
    .page-content div[style*="background: white; border-radius: 16px"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
        position: relative !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Table Mobile - Responsive Genişlik */
    .page-content table[style*="width: 100%; border-collapse: collapse"] {
        min-width: calc(100vw - 3rem) !important;
        max-width: 100% !important;
        font-size: 0.85rem !important;
        table-layout: fixed !important;
    }
    
    /* Table Headers Mobile */
    .page-content th[style*="padding: 1.5rem 2rem"] {
        padding: 1rem 1.2rem !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
    }
    
    /* Table Cells Mobile */
    .page-content td[style*="padding: 1.5rem 2rem"] {
        padding: 1rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .page-content td[style*="padding: 1.2rem 2rem"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Position Tags in Tables Mobile */
    .page-content span[style*="background: linear-gradient(135deg"] {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.75rem !important;
        border-radius: 16px !important;
        white-space: nowrap !important;
    }
    
    /* Dots in Tables Mobile */
    .page-content div[style*="width: 8px; height: 8px"] {
        width: 6px !important;
        height: 6px !important;
        margin-right: 0.8rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Names in Tables Mobile - AGRESİF TEXT BREAKING */
    .page-content div[style*="display: flex; align-items: center"] {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }
    
    /* Scroll Hint for Tables */
    .page-content div[style*="overflow-x: auto"]::after {
        content: "← Kaydırarak tüm bilgileri görüntüleyebilirsiniz →";
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        color: #64748b;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
        padding: 0.4rem 1rem;
        border-radius: 20px;
        white-space: nowrap;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
        font-weight: 500;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    .page-content table[style*="min-width: 500px"] {
        min-width: 450px !important;
        font-size: 0.8rem !important;
    }
    
    .page-content th[style*="padding: 1rem 1.2rem"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .page-content td[style*="padding: 1rem 1.2rem"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .page-content td[style*="padding: 0.8rem 1rem"] {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    .page-content span[style*="padding: 0.3rem 0.7rem"] {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    
    .page-content div[style*="overflow-x: auto"]::after {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.8rem !important;
        bottom: -30px !important;
    }
}

/* Page Header Mobile Optimization - Enhanced */
@media (max-width: 768px) {
    /* Page Header Mobile - Taşma Önleme */
    .page-content div[style*="background: linear-gradient(135deg, #1e293b 0%, #334155 100%)"] {
        padding: 1.5rem 1rem 1rem !important;
        text-align: center !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Page Titles Mobile - AGRESİF TEXT BREAKING */
    .page-content h1[style*="color: white; font-size: 2.5rem"] {
        font-size: 1.4rem !important;
        margin: 0 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        max-width: calc(100vw - 2rem) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        padding: 0 0.5rem !important;
        display: block !important;
    }
    
    /* Page Subtitles Mobile */
    .page-content p[style*="color: #cbd5e1; font-size: 1.1rem"] {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin: 0.8rem 0 0 !important;
        line-height: 1.4 !important;
    }
    
    /* Icons in Headers Mobile */
    .page-content i[style*="margin-right: 1rem"] {
        margin-right: 0.8rem !important;
        font-size: 1.2rem !important;
    }
    
    /* Main Content Container Mobile */
    .page-content div[style*="padding: 3rem"] {
        padding: 1.5rem 1rem !important;
    }
    
    /* Gradient Top Line Mobile */
    .page-content div[style*="position: absolute; top: 0; left: 0; right: 0; height: 4px"] {
        height: 3px !important;
    }
}

@media (max-width: 480px) {
    .page-content div[style*="padding: 2rem 1.5rem 1.5rem"] {
        padding: 1.5rem 1rem 1rem !important;
    }
    
    .page-content h1[style*="font-size: 1.8rem"] {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .page-content p[style*="font-size: 0.95rem"] {
        font-size: 0.85rem !important;
    }
    
    .page-content div[style*="padding: 1.5rem 1rem"] {
        padding: 1rem 0.8rem !important;
    }
    
    .page-content i[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        margin-right: 0.6rem !important;
    }
}

@media (max-width: 360px) {
    .page-content h1[style*="font-size: 1.5rem"] {
        font-size: 1.3rem !important;
    }
    
    .page-content div[style*="padding: 1rem 0.8rem"] {
        padding: 0.8rem 0.6rem !important;
    }
    
    .page-content table[style*="min-width: 450px"] {
        min-width: 400px !important;
    }
    
    .page-content div[style*="overflow-x: auto"]::after {
        content: "← Kaydırın →" !important;
        font-size: 0.65rem !important;
        padding: 0.25rem 0.6rem !important;
    }
}

/* Enhanced Animations and Interactions for Mobile */
@media (max-width: 768px) {
    /* Smooth hover effects for management cards */
    .page-content div[style*="background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%)"] {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Timeline cards hover effect */
    .page-content div[style*="background: white; padding"] {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Table row hover improvements */
    .page-content tr {
        transition: background-color 0.2s ease !important;
    }
    
    /* Enhanced contact links */
    .page-content a[href*="mailto"], 
    .page-content a[href*="avesis"] {
        transition: all 0.3s ease !important;
        border-radius: 6px !important;
    }
    
    /* Profile image improvements */
    .page-content img[style*="border-radius: 50%"] {
        transition: all 0.3s ease !important;
    }
}

/* Dark mode enhancements for mobile content pages */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .page-content div[style*="background: white"] {
        background: rgba(30, 41, 59, 0.8) !important;
        border: 1px solid rgba(71, 85, 105, 0.3) !important;
    }
    
    .page-content p[style*="color: #475569"] {
        color: #cbd5e1 !important;
    }
    
    .page-content h3[style*="color: #1e293b"] {
        color: #f1f5f9 !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .page-content * {
        will-change: auto !important;
    }
    
    .page-content img {
        image-rendering: optimizeQuality !important;
    }
    
    .page-content table {
        scroll-behavior: smooth !important;
    }
} 

/* =================================
   UZUN İÇERİKLER İÇİN EK MOBIL KORUMA
================================= */

@media (max-width: 768px) {
    /* Email adresleri ve uzun linkler için - AGRESİF BREAKING */
    .page-content a[href*="mailto"],
    .page-content a[href*="avesis"],
    .page-content a {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        max-width: calc(100% - 1rem) !important;
        display: block !important;
        text-align: center !important;
        white-space: normal !important;
        hyphens: auto !important;
        padding: 0.25rem !important;
        margin: 0.25rem auto !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Uzun isimler ve unvanlar için */
    .page-content td,
    .page-content th {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 200px !important;
        white-space: normal !important;
    }
    
    /* Timeline içindeki uzun metinler */
    .page-content div[style*="timeline"] p,
    .page-content div[style*="background: white"] p {
        text-align: justify !important;
        word-spacing: -1px !important;
        letter-spacing: -0.5px !important;
    }
    
    /* Management kartlarındaki isimler */
    .page-content h3 {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        text-align: center !important;
    }
    
    /* Tüm span elementleri için güvenlik */
    .page-content span {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlarda MAKSİMUM AGRESİF text breaking */
    .page-content,
    .page-content * {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        max-width: calc(100vw - 1rem) !important;
    }
    
    /* Başlıklar için özel kurallar */
    .page-content h1,
    .page-content h2, 
    .page-content h3,
    .page-content h4 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        margin: 0.25rem 0 !important;
        padding: 0.25rem !important;
        text-align: center !important;
    }
    
    /* Metinler için özel kurallar */
    .page-content p,
    .page-content span,
    .page-content div {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin: 0.25rem 0 !important;
        padding: 0.25rem !important;
    }
    
    .page-content table {
        font-size: 0.75rem !important;
    }
    
    .page-content td,
    .page-content th {
        max-width: 150px !important;
        padding: 0.5rem 0.3rem !important;
    }
}

@media (max-width: 360px) {
    /* Ultra küçük ekranlar için maksimum koruma */
    .page-content {
        padding: 0 0.25rem !important;
    }
    
    .page-content > div {
        margin: 0 !important;
        padding: 0.5rem !important;
    }
    
    .page-content table {
        font-size: 0.7rem !important;
    }
    
    .page-content td,
    .page-content th {
        max-width: 120px !important;
        padding: 0.4rem 0.2rem !important;
    }
    
    .page-content h1 {
        font-size: 1.2rem !important;
    }
    
    .page-content h3 {
        font-size: 0.9rem !important;
    }
}

/* =================================
   VIEWPORT VE BROWSER GÜVENLİK KONTROLLER
================================= */

/* Tüm mobil cihazlar için temel koruma */
@media (max-width: 768px) {
    /* Body ve HTML seviyesinde overflow kontrolü */
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Ana container'lar için viewport genişlik limiti */
    .main-content,
    .content-body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Tüm page-content elementleri için kesin sınır */
    .page-content,
    .page-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Absolute ve fixed positioned elementler için */
    .page-content [style*="position: absolute"],
    .page-content [style*="position: fixed"] {
        max-width: calc(100vw - 2rem) !important;
        overflow: hidden !important;
    }
    
    /* Flex container'lar için */
    .page-content [style*="display: flex"] {
        flex-wrap: wrap !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Grid container'lar için */
    .page-content [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Çok geniş içerikler için emergency break */
@media (max-width: 768px) {
    .page-content > * {
        max-width: calc(100vw - 1rem) !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
    
    /* Tüm metin içeriği için */
    .page-content p,
    .page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5,
    .page-content span, .page-content div, .page-content td, .page-content th {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Resimlerin de taşmaması için */
    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Safari mobil için özel düzeltmeler */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .page-content * {
            -webkit-box-sizing: border-box !important;
            box-sizing: border-box !important;
        }
        
        .page-content {
            -webkit-overflow-scrolling: touch !important;
            overflow-x: hidden !important;
        }
    }
}

/* Android mobil tarayıcılar için */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .page-content {
        transform: translateZ(0) !important;
    }
    
    .page-content > div {
        backface-visibility: hidden !important;
    }
}

/* =================================
   ULTRA MOBİL TEXT BREAKING KORUMA KATMANI
================================= */

/* En küçük cihazlar için emergency rules */
@media (max-width: 360px) {
    /* Tüm elementler için mutlak koruma */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .page-content,
    .page-content *,
    .page-content *::before,
    .page-content *::after {
        max-width: calc(100vw - 0.5rem) !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Başlıklar için ultra kompakt */
    .page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5 {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
        margin: 0.2rem 0 !important;
        padding: 0.2rem !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Metinler için ultra kompakt */
    .page-content p, .page-content span, .page-content div, .page-content td, .page-content th {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin: 0.1rem 0 !important;
        padding: 0.1rem !important;
    }
    
    /* Linkler için ultra kompakt */
    .page-content a {
        font-size: 0.65rem !important;
        display: block !important;
        text-align: center !important;
        padding: 0.1rem !important;
        margin: 0.1rem auto !important;
    }
}

/* Tüm text elementleri için global güvenlik */
@media (max-width: 768px) {
    /* En güçlü text breaking kuralları */
    .page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5,
    .page-content p, .page-content span, .page-content div, .page-content a,
    .page-content td, .page-content th, .page-content li {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Timeline ve Management kartları için özel koruma */
    .page-content [style*="background: white"],
    .page-content [style*="background: linear-gradient"] {
        max-width: 100% !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* Tablolar için özel koruma */
    .page-content table {
        table-layout: fixed !important;
        width: 100% !important;
        max-width: calc(100vw - 1rem) !important;
    }
    
    .page-content table td,
    .page-content table th {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 150px !important;
        overflow: hidden !important;
    }
}

/* Browser uyumluluk katmanı */
@media (max-width: 768px) {
    /* Webkit tarayıcılar için */
    .page-content * {
        -webkit-hyphens: auto !important;
        -webkit-word-break: break-word !important;
        -webkit-overflow-wrap: break-word !important;
    }
    
    /* Firefox için */
    .page-content * {
        -moz-hyphens: auto !important;
        -moz-word-break: break-word !important;
    }
    
    /* Internet Explorer için */
    .page-content * {
        -ms-hyphens: auto !important;
        -ms-word-break: break-word !important;
        -ms-overflow-wrap: break-word !important;
    }
}

/* =================================
   ORGANİZASYON ŞEMASI MOBİL OPTİMİZASYON
================================= */

/* Organizasyon Şeması sayfası için mobil uyumluluk */
@media (max-width: 768px) {
    /* Ana başlık bölümü mobil optimizasyonu */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        text-align: center !important;
    }
    
    /* Başlık container flex düzeni mobilde dikey */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Organizasyon şeması ikonları mobilde küçültme */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] i.fa-sitemap {
        font-size: 2rem !important;
    }
    
    /* Ana başlık mobil boyutlandırma */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
    }
    
    /* Alt başlık mobil boyutlandırma */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
    }
    
    /* Bilgi kartları mobil padding */
    div[style*="background: #ffffff; border-radius: 12px; padding: 2rem"] {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 10px !important;
    }
    
    /* Kart başlıkları mobil düzen */
    div[style*="display: flex; align-items: center; gap: 1rem"] {
        flex-direction: row !important;
        gap: 0.8rem !important;
        margin-bottom: 1rem !important;
        flex-wrap: wrap !important;
    }
    
    /* İkon containerları mobilde küçültme */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 0.75rem"] {
        padding: 0.6rem !important;
        border-radius: 10px !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 0.75rem"] {
        padding: 0.6rem !important;
        border-radius: 10px !important;
    }
    
    /* Kart başlıkları mobil font boyutu */
    div[style*="background: #ffffff"] h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
    }
    
    /* Açıklama metinleri mobil optimizasyon */
    div[style*="background: #ffffff"] p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word !important;
        text-align: justify !important;
    }
}

/* PDF Viewer mobil optimizasyonu */
@media (max-width: 768px) {
    /* PDF container başlık bölümü mobil */
    div[style*="display: flex; align-items: center; justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: flex-start !important;
        margin-bottom: 1rem !important;
    }
    
    /* PDF başlık kısmı mobil */
    div[style*="display: flex; align-items: center; justify-content: space-between"] > div:first-child {
        width: 100% !important;
    }
    
    /* Buton grubu mobil düzen */
    div[style*="display: flex; gap: 1rem"]:has(a[href*="pdf"]) {
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }
    
    /* PDF butonları mobil boyutlandırma */
    a[style*="background: linear-gradient(135deg, #3b82f6"],
    a[style*="background: linear-gradient(135deg, #10b981"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* PDF viewer iframe container mobil */
    div[style*="border: 2px solid #e5e7eb; border-radius: 12px"] {
        border-radius: 10px !important;
        min-height: 400px !important;
        overflow: hidden !important;
    }
    
    /* PDF toolbar mobil optimizasyon */
    div[style*="position: absolute; top: 0; left: 0; right: 0; background: linear-gradient"] {
        padding: 0.8rem !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* PDF başlık metni mobil */
    span[style*="font-weight: 600; color: #374151"] {
        font-size: 0.8rem !important;
        word-wrap: break-word !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* Zoom kontrolleri mobil */
    div[style*="margin-left: auto; display: flex"] {
        margin-left: 0 !important;
        gap: 0.3rem !important;
        flex-wrap: wrap !important;
    }
    
    /* Zoom butonları mobil boyutlandırma */
    button[onclick*="zoom"] {
        padding: 0.6rem !important;
        border-radius: 8px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    /* Zoom seviyesi göstergesi mobil */
    span#zoomLevel {
        font-size: 0.8rem !important;
        min-width: 45px !important;
        padding: 0.3rem !important;
        text-align: center !important;
    }
    
    /* PDF iframe mobil boyutlandırma */
    iframe#pdfViewer {
        height: 400px !important;
        margin-top: 70px !important;
        width: 100% !important;
    }
    
    /* Loading spinner mobil pozisyon */
    div#loadingSpinner {
        top: 60% !important;
        gap: 0.8rem !important;
    }
    
    div#loadingSpinner > div {
        width: 35px !important;
        height: 35px !important;
    }
    
    div#loadingSpinner span {
        font-size: 0.85rem !important;
        text-align: center !important;
    }
}

/* Kullanım ipuçları mobil optimizasyon */
@media (max-width: 768px) {
    /* İpuçları container mobil */
    div[style*="background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%)"] {
        padding: 1rem !important;
        border-radius: 8px !important;
        margin-top: 1rem !important;
    }
    
    /* İpuçları başlık mobil */
    div[style*="display: flex; align-items: center; gap: 0.75rem"] {
        gap: 0.5rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* İpuçları listesi mobil */
    ul[style*="color: #0c4a6e"] {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        padding-left: 1.2rem !important;
        margin: 0 !important;
    }
    
    ul[style*="color: #0c4a6e"] li {
        margin-bottom: 0.5rem !important;
        word-wrap: break-word !important;
    }
}

/* Çok küçük ekranlar için ek optimizasyonlar */
@media (max-width: 480px) {
    /* Ana başlık bölümü ultra mobil */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] {
        padding: 1rem 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] h2 {
        font-size: 1.3rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] p {
        font-size: 0.8rem !important;
    }
    
    /* Bilgi kartları ultra mobil */
    div[style*="background: #ffffff; border-radius: 12px"] {
        padding: 1rem 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    div[style*="background: #ffffff"] h3 {
        font-size: 1.1rem !important;
    }
    
    div[style*="background: #ffffff"] p {
        font-size: 0.8rem !important;
    }
    
    /* PDF viewer ultra mobil */
    iframe#pdfViewer {
        height: 350px !important;
        margin-top: 80px !important;
    }
    
    div[style*="min-height: 400px"] {
        min-height: 350px !important;
    }
    
    /* Butonlar ultra mobil */
    a[style*="background: linear-gradient"] {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* İpuçları ultra mobil */
    ul[style*="color: #0c4a6e"] {
        font-size: 0.75rem !important;
    }
}

/* Landscape mode mobil için özel düzenlemeler */
@media (max-width: 768px) and (orientation: landscape) {
    /* PDF viewer landscape modda daha geniş */
    iframe#pdfViewer {
        height: 350px !important;
    }
    
    div[style*="min-height: 400px"] {
        min-height: 350px !important;
    }
    
    /* Başlık bölümü landscape modda daha kompakt */
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] {
        padding: 1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"] h2 {
        font-size: 1.4rem !important;
    }
}

/* Touch optimizasyonları */
@media (max-width: 768px) {
    /* Tüm butonlar için touch-friendly boyutlar */
    button[onclick*="zoom"],
    a[href*="pdf"] {
        min-height: 44px !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
    
    /* PDF iframe touch scrolling */
    iframe#pdfViewer {
        -webkit-overflow-scrolling: touch !important;
        overflow: auto !important;
    }
    
    /* Smooth transitions mobilde */
    div[style*="transition: all 0.3s ease"],
    a[style*="transition: all 0.3s ease"],
    button {
        transition: all 0.2s ease !important;
    }
} 

/* =================================
   STRATEJİK AMAÇLAR MOBİL OPTİMİZASYON
================================= */

@media (max-width: 768px) {
    /* Ana container mobil optimizasyonu */
    div[style*="background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%)"] {
        padding: 1rem 0 !important;
    }
    
    div[style*="max-width: 1400px"] {
        padding: 0 0.75rem !important;
    }
    
    /* Başlık bölümü mobil optimizasyonu */
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] i.fas {
        font-size: 2rem !important;
    }
    
    /* İkon container mobil optimizasyonu */
    div[style*="display: inline-flex"][style*="width: 80px"] {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Tablo container mobil optimizasyonu */
    div[style*="background: white"][style*="border-radius: 16px"] {
        padding: 0.75rem !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Tablo başlıkları mobil optimizasyonu */
    table th {
        padding: 1rem 0.75rem !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
        min-width: 120px !important;
    }
    
    /* Ana tema hücresi mobil optimizasyonu */
    td[rowspan] div[style*="background: linear-gradient"] {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
        white-space: normal !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Tablo içeriği mobil optimizasyonu */
    table td {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    /* Amaç başlıkları mobil optimizasyonu */
    td strong {
        display: block !important;
        margin-bottom: 0.25rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Liste maddeleri mobil optimizasyonu */
    td[style*="line-height: 1.4"] {
        padding-left: 0.5rem !important;
    }
    
    /* Tablo satır arkaplan renkleri mobil optimizasyonu */
    tr[style*="background: #f0f9ff"],
    tr[style*="background: #f0fdf4"] {
        background: #ffffff !important;
    }
    
    /* Tablo kenar çizgileri mobil optimizasyonu */
    td, th {
        border-color: #e5e7eb !important;
    }
    
    /* Tablo hover efektleri mobil optimizasyonu */
    tr:hover {
        background-color: #f8fafc !important;
    }
    
    /* Touch hedef boyutları optimizasyonu */
    td, th {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }
    
    /* Yatay kaydırma göstergesi */
    div[style*="overflow-x: auto"] {
        position: relative !important;
    }
    
    div[style*="overflow-x: auto"]::after {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 20px !important;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9)) !important;
        pointer-events: none !important;
    }
}

/* Yatay mod optimizasyonları */
@media (max-width: 768px) and (orientation: landscape) {
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] {
        padding: 1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] h1 {
        font-size: 1.3rem !important;
    }
    
    div[style*="display: inline-flex"][style*="width: 80px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    table {
        font-size: 0.75rem !important;
    }
}

/* Küçük mobil cihazlar için ek optimizasyonlar */
@media (max-width: 480px) {
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] h1 {
        font-size: 1.25rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] p {
        font-size: 0.8rem !important;
    }
    
    table th,
    table td {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }
    
    td strong {
        font-size: 0.8rem !important;
    }
}

/* Ultra küçük mobil cihazlar için ek optimizasyonlar */
@media (max-width: 360px) {
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] h1 {
        font-size: 1.1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #10b981 0%, #059669 100%)"] p {
        font-size: 0.75rem !important;
    }
    
    table th,
    table td {
        font-size: 0.7rem !important;
        padding: 0.4rem !important;
    }
    
    td strong {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    /* PERFORMANCE TABLOLARI TAM GENİŞLİK */
    .performance-table,
    table[style*="min-width: 700px"],
    table[style*="min-width: 800px"],
    table[style*="min-width: 1000px"],
    table[style*="min-width: 1200px"] {
        min-width: 100% !important;
        width: 100% !important;
    }

    /* Tablodaki başlık ve hücre overflow kontrolü */
    .performance-table th,
    .performance-table td,
    table th,
    table td {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
}

@media (max-width: 768px) {
    /* Data tables tam genişlik */
    .data-table table {
        min-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Global scaling fix */
    html {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
    }
    
    body {
        font-size: 14px;
        zoom: 0.75;
        -ms-zoom: 0.75;
        -webkit-zoom: 0.75;
        -moz-transform: scale(0.75);
        -moz-transform-origin: 0 0;
    }
    
    /* Prevent text scaling in landscape */
    @media screen and (orientation: landscape) {
        html {
            -webkit-text-size-adjust: none;
            text-size-adjust: none;
        }
    }
}

@media (max-width: 768px) {
    /* Tablo kenar çizgileri düzeltmesi */
    table {
        border-collapse: collapse !important;
    }
    
    td[style*="border-right"],
    th[style*="border-right"] {
        border-right: none !important;
    }
    
    td[style*="border-bottom"],
    th[style*="border-bottom"] {
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    /* Tablo hücre padding düzeltmesi */
    td, th {
        padding: 0.75rem !important;
    }
    
    /* Tablo container gölge ve kenar yumuşatması */
    div[style*="overflow-x: auto"] {
        border-radius: 8px !important;
        box-shadow: none !important;
    }
    
    /* Tablo arkaplan rengi */
    tr[style*="background: #f8fafc"],
    tr[style*="background: #f0f9ff"] {
        background: #ffffff !important;
    }
    
    tr:hover {
        background: #f8fafc !important;
    }
}

@media (max-width: 768px) {
    /* Tablo container overflow düzeltmesi */
    div[style*="overflow-x: auto"] {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    div[style*="overflow-x: auto"]::after,
    div[style*="overflow-x: auto"]::before {
        display: none !important;
    }
    
    /* Tablo kenarları düzeltmesi */
    table {
        border: none !important;
        background: white !important;
    }
    
    /* Tablo hücreleri düzeltmesi */
    td, th {
        border-right: none !important;
        background: white !important;
    }
    
    /* Tablo container'ı düzeltmesi */
    div[style*="background: white; border-radius: 16px"] {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    /* Tablo satır arkaplanları */
    tr {
        background: white !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    tr:last-child {
        border-bottom: none !important;
    }
}

/* Akademik Kadro Sayfası Stilleri */
.academic-staff-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
}

.academic-staff-intro {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.academic-staff-intro h3 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.academic-staff-intro p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.filters-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.filters-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.filters-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-header i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.results-info {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.results-info span {
    font-weight: 600;
    color: #0c4a6e;
    font-size: 0.95rem;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.staff-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.staff-card:hover::before {
    transform: scaleX(1);
}

.staff-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.staff-details {
    flex: 1;
}

.staff-name {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.staff-title {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.staff-department {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.75rem 0 0 0;
    line-height: 1.4;
}

.staff-actions {
    flex-shrink: 0;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .filters-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: span 2;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .staff-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .academic-staff-intro {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .academic-staff-intro h3 {
        font-size: 1.5rem;
    }
    
    .academic-staff-intro p {
        font-size: 1rem;
    }
    
    .filters-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        grid-column: span 1;
        justify-content: stretch;
        margin-top: 0.5rem;
    }
    
    .filter-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .staff-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .staff-card {
        padding: 1.25rem;
    }
    
    .staff-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .staff-actions {
        width: 100%;
    }
    
    .staff-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .staff-name {
        font-size: 1rem;
    }
    
    .staff-department {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .academic-staff-intro {
        padding: 1.25rem;
    }
    
    .academic-staff-intro h3 {
        font-size: 1.25rem;
    }
    
    .academic-staff-intro p {
        font-size: 0.9rem;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .filters-header h4 {
        font-size: 1rem;
    }
    
    .filter-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .staff-card {
        padding: 1rem;
    }
    
    .staff-name {
        font-size: 0.95rem;
    }
    
    .staff-title {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .staff-department {
        font-size: 0.8rem;
    }
    
    .results-info {
        padding: 0.625rem 0.75rem;
    }
    
    .results-info span {
        font-size: 0.85rem;
    }
}

/* Bölüm Başkanları Sayfası Stilleri */
.department-heads-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
}

.department-heads-intro {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.department-heads-intro h3 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.department-heads-intro p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* İstatistikler Bölümü */
.department-stats {
    margin-bottom: 2rem;
}

.stat-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.summary-card:hover::before {
    transform: scaleX(1);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-card:nth-child(1) .summary-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-card:nth-child(2) .summary-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.summary-card:nth-child(3) .summary-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.summary-card:nth-child(4) .summary-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-info h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.summary-number {
    color: #3b82f6;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Bölüm Başkanları Listesi */
.department-heads-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.department-head-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.department-head-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #f59e0b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.department-head-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.department-head-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.department-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.department-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.department-details {
    flex: 1;
}

.department-name {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.department-head-title {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.card-body {
    padding: 1.5rem;
}

.head-info {
    margin-bottom: 1.5rem;
}

.head-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.head-name i {
    color: #10b981;
    font-size: 1.1rem;
}

.head-name span {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: #6b7280;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-item span {
    color: #4b5563;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.card-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .department-heads-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.25rem;
    }
    
    .stat-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .department-heads-intro {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .department-heads-intro h3 {
        font-size: 1.5rem;
    }
    
    .department-heads-intro p {
        font-size: 1rem;
    }
    
    .stat-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1.25rem;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .summary-number {
        font-size: 1.5rem;
    }
    
    .department-heads-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .department-head-card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .department-name {
        font-size: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-actions .btn {
        flex: none;
    }
}

@media (max-width: 480px) {
    .department-heads-intro {
        padding: 1.25rem;
    }
    
    .department-heads-intro h3 {
        font-size: 1.25rem;
    }
    
    .department-heads-intro p {
        font-size: 0.9rem;
    }
    
    .stat-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .summary-info h4 {
        font-size: 0.9rem;
    }
    
    .summary-number {
        font-size: 1.25rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .department-info {
        gap: 0.75rem;
    }
    
    .department-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .department-name {
        font-size: 0.95rem;
    }
    
    .department-head-title {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .head-name span {
        font-size: 1rem;
    }
    
    .contact-item {
        gap: 0.5rem;
    }
    
    .card-actions .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
}