:root {
    --primary-color: #375A7F;
    --primary-color-light: #4a76a8;
    --background-color: #f8f9fa;
    --card-background-color: #ffffff;
    --text-color: #212529;
    --text-color-light: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: none;
    --shadow-md: none;
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    font-family: var(--font-family-sans-serif);
    color: var(--text-color);
    line-height: 1.5;
}

main {
    flex: 1;
}

/* Accessibility & Focus */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    outline: 2px solid var(--primary-color-light);
    outline-offset: 2px;
    box-shadow: none;
}

/* Grid View Modernization */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 170px;
}

.grid-item:hover, .grid-item:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
}

.grid-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.grid-thumbnail {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
}

.grid-item-name {
    word-break: break-word;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Navbar Modernization */
.navbar {
    box-shadow: var(--shadow-sm) !important;
    padding: 0.5rem 1rem; /* Büyütmek için padding ekle */
    position: sticky; /* Yapışkan yap */
    top: 0; /* Üste sabitle */
    z-index: 1030; /* Diğer elemanların üzerinde kalmasını sağla */
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color-light);
    font-weight: 500;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(55, 90, 127, 0.1);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: none;
}

.navbar .dropdown-item {
    transition: background-color var(--transition-speed) ease;
}

.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
    background-color: rgba(55, 90, 127, 0.1);
    color: var(--primary-color);
}

/* Footer Styling */
.footer {
    background-color: #e9ecef;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Container adjustments */
.container, .container-fluid {
    max-width: 1320px;
}

/* Responsive Design - Mobile First Approach */

/* Base styles for mobile */
html {
    font-size: 14px;
}

.grid-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.grid-item {
    height: 150px;
    padding: 0.5rem;
}

.grid-icon {
    font-size: 2.5rem;
}

.grid-item-name {
    font-size: 0.8rem;
}

.navbar-brand img {
    max-height: 30px;
}

.display-4 {
    font-size: 2.5rem;
}

/* Tablet - 576px and up */
@media (min-width: 576px) {
    html {
        font-size: 15px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .display-4 {
        font-size: 3rem;
    }
}

/* Desktop - 768px and up */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .grid-item {
        height: 170px;
        padding: 1rem;
    }

    .grid-icon {
        font-size: 3.5rem;
    }
    
    .grid-item-name {
        font-size: 0.875rem;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    .display-4 {
        font-size: 3.5rem;
    }
}

/* Large Desktop - 992px and up */
@media (min-width: 992px) {
    .container, .container-fluid {
/* Navigation responsiveness */
.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--card-background-color);
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .navbar .dropdown-menu {
        box-shadow: none;
        background-color: transparent;
        border: none;
    }

    .navbar .dropdown-item {
        padding-left: 1.5rem;
    }
}
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Extra Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .container, .container-fluid {
        max-width: 1320px;
    }
}

/* Table responsiveness */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form responsiveness */
.form-control, .btn {
    font-size: 1rem; /* Ensure touch-friendly size */
}
/* File Manager Responsiveness */
.file-manager-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-manager-toolbar .form-inline {
    flex-wrap: nowrap;
    width: 100%;
}

.file-manager-toolbar .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
    .file-manager-toolbar {
        flex-wrap: nowrap;
    }

    .file-manager-toolbar .form-inline {
        width: auto;
    }
}
/* Forms Responsiveness */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

.form-control,
.btn {
    min-height: 44px; /* Touch-friendly height */
}
/* Admin Table Responsiveness */
@media (max-width: 768px) {
    .table-responsive-stack {
        display: block;
        width: 100%;
    }

    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tbody,
    .table-responsive-stack tr,
    .table-responsive-stack td {
        display: block;
        width: 100%;
    }

    .table-responsive-stack tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 1rem;
    }

    .table-responsive-stack td {
        padding-left: 50%;
        position: relative;
        text-align: right;
        border: none;
    }

    .table-responsive-stack td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 2rem);
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
    }

    .table-actions {
        text-align: center !important;
        padding-left: 1rem !important;
    }

    .table-actions .btn {
        margin: 0.25rem;
    }
}
/* Card and Content Responsiveness */
.card {
    margin-bottom: 1.5rem;
}

.hero-section {
    padding: 4rem 1rem;
    text-align: center;
}

.hero-section .display-4 {
    font-size: 2rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 2rem;
    }

    .hero-section .display-4 {
        font-size: 3.5rem;
    }

    .hero-section .lead {
        font-size: 1.25rem;
    }
}

.content-section {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .content-section {
        padding: 4rem 0;
    }
}




.form-check-input {
    --bs-form-check-bg: rgba(0, 0, 0, 0.125);
}
/* Root Banners Styling */
.root-banners-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.root-banner-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.root-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #7f8c8d; /* Fallback color */
    background-image: linear-gradient(45deg, #2c3e50, #3498db); /* Fallback gradient */
    transition: transform 0.3s ease;
}

.root-banner-item:hover .banner-background {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.root-banner-item:hover .banner-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
}

.banner-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .root-banner-item {
        height: 275px;
    }
    .banner-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .root-banners-container {
        grid-template-columns: 1fr;
    }
    .root-banner-item {
        height: 250px;
    }
    .banner-content h2 {
        font-size: 1.4rem;
    }
}

/* Flat Login Page Design */
.flat-login-container {
    padding-top: 5vh;
}

.flat-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm); /* Should be none */
}

.flat-card .card-body {
    padding: 2rem;
}

.flat-card .form-control {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.flat-card .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(55, 90, 127, 0.2);
    outline: none;
}

.flat-button {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
}

.flat-button:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color-light);
}


.modal-dialog {
    box-shadow: none;
}


/*.card {
    background-color: transparent;
}*/

    .card > .form-check-input file-checkbox {
        position: absolute;
        top: 170px;
        left: 160px;
        z-index: 1;
    }

