/* Mevcut stilize.css içeriğiniz burada yer alıyor */
/* ... (önceki tüm css kurallarınız) ... */

body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
background-color: #f8fafc; /* Very light background */
color: #333; /* Default text color */
line-height: 1.6; /* Improved readability */
overflow-x: hidden; /* Prevent horizontal scrolling */
transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}

/* Dark Mode Styles */
body.dark-mode {
background-color: #1a202c; /* Dark background */
color: #e2e8f0; /* Light text color */
}

body.dark-mode aside {
background-color: #2d3748; /* Darker sidebar background */
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3); /* More prominent shadow */
}

body.dark-mode .sidebar-logo h3 {
color: #e2e8f0; /* Light logo text color */
}

body.dark-mode aside h3 {
color: #cbd5e0; /* Lighter heading color */
border-bottom-color: #4a5568; /* Darker border */
}

body.dark-mode aside ul li a {
color: #a0aec0; /* Lighter grey link color */
}

body.dark-mode aside ul li a i {
color: #a0aec0; /* Lighter icon color */
}

body.dark-mode aside ul li a:hover {
background-color: #4a5568; /* Darker background on hover */
color: #ffffff; /* White color on hover */
}

body.dark-mode aside ul li a:hover i {
color: #ffffff; /* White icon color on hover */
}

body.dark-mode .list-divider {
border-top-color: #4a5568; /* Darker divider */
}

body.dark-mode .sidebar-footer {
color: #a0aec0; /* Lighter footer text */
border-top-color: #4a5568; /* Darker border */
}


body.dark-mode main {
background-color: #1a202c; /* Match body background */
}

body.dark-mode .content-section h2 {
color: #e2e8f0; /* Light heading color */
border-bottom-color: #4a5568; /* Darker border */
}

body.dark-mode .course-card {
background-color: #2d3748; /* Darker card background */
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* More prominent shadow */
}

body.dark-mode .card-meta {
color: #a0aec0; /* Lighter grey meta color */
}

body.dark-mode .card-meta span i {
color: #a0aec0; /* Lighter icon color */
}

body.dark-mode .card-meta .category-button {
background-color: #4a5568; /* Darker background */
color: #e2e8f0; /* Light text */
}

body.dark-mode .card-meta .category-button:hover {
background-color: #5a67d8; /* Slightly lighter on hover */
}


body.dark-mode .course-card h3 {
color: #e2e8f0; /* Light title color */
}

body.dark-mode .course-card .course-description {
color: #a0aec0; /* Lighter description text */
}

body.dark-mode .course-card .card-actions {
border-top-color: #4a5568; /* Darker separator line */
}

body.dark-mode .course-card .view-course-button {
color: #90cdf4; /* Lighter blue button color */
}

body.dark-mode .course-card .view-course-button:hover {
text-decoration: underline; /* Underline on hover */
}

body.dark-mode .course-card .save-button {
color: #1e3a8a; /* Default dark blue color */
}

body.dark-mode .course-card .save-button.saved {
color: #f6ad55; /* Orange color when saved */
}

body.dark-mode .course-card .share-button:hover {
color: #cbd5e0; /* Lighter grey on hover in dark mode */
}

header {
display: none; 
}

.main-content {
display: flex; 
width: 100%; 
margin-top: 0; 
}

aside {
width: 280px; 
background-color: #ffffff; 
padding: 20px; 
box-sizing: border-box; 
position: fixed; 
height: 100vh; 
overflow-y: auto; 
top: 0; 
left: 0; 
z-index: 900; 
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08); 
padding-top: 20px; 
display: flex; 
flex-direction: column; 
}

.sidebar-logo {
text-align: center;
margin-bottom: 30px; 
padding-bottom: 20px;
border-bottom: 1px solid #e5e7eb; 
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-logo h3 {
margin: 10px 0 0 0;
color: #1e3a8a;
font-size: 1.4em;
font-weight: 800;
}


aside h3 {
margin-top: 0; 
color: #1f2937; 
font-size: 1.2em;
margin-bottom: 15px;
border-bottom: 1px solid #e5e7eb; 
padding-bottom: 8px;
}

aside ul {
list-style: none; 
padding: 0; 
margin-bottom: 20px; 
}

aside ul li {
margin-bottom: 8px; 
position: relative; 
}

aside ul li a {
text-decoration: none; 
color: #4b5563; 
display: block; 
padding: 10px 12px; 
border-radius: 6px; 
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
font-size: 0.95em;
}

aside ul li a:hover {
background-color: #eef2f7; 
color: #1e3a8a; 
transform: translateX(5px); 
}

aside ul li a i {
margin-right: 10px;
color: #6b7280; 
transition: color 0.3s ease;
}

aside ul li a:hover i {
color: #1e3a8a; 
}

aside .list-divider {
margin: 20px 0; 
border-top: 1px solid #e5e7eb; 
}

body.dark-mode aside .list-divider {
border-top-color: #4a5568; 
}

.theme-toggle,
.download-button,
.buy-coffee-button { 
border: none;
padding: 10px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 0.95em;
display: flex;
align-items: center;
justify-content: center;
width: 100%; 
box-sizing: border-box; 
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
text-decoration: none; 
background-color: #eef2f7; 
color: #1e3a8a; 
}

.theme-toggle:hover,
.download-button:hover,
.buy-coffee-button:hover { 
transform: scale(1.05); 
background-color: #d1d9e6;
}


.theme-toggle {
margin-top: 5px; 
margin-bottom: 5px; 
}

.buy-coffee-button { 
margin-top: 20px;
margin-bottom: 5px;
}


.download-button {
margin-bottom: 20px; 
margin-top: 5px; 
display: none; 
}


.theme-toggle i,
.download-button i,
.buy-coffee-button i { 
margin-right: 8px;
}


body.dark-mode .theme-toggle,
body.dark-mode .download-button,
body.dark-mode .buy-coffee-button { 
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .download-button:hover,
body.dark-mode .buy-coffee-button:hover { 
background-color: #5a67d8; 
color: #ffffff; 
}

aside .sidebar-footer {
margin-top: auto; 
padding-top: 20px;
text-align: center;
font-size: 0.8em;
color: #6b7280;
}

main {
margin-left: 280px; 
flex-grow: 1; 
padding: 20px; 
box-sizing: border-box; 
overflow-y: auto; 
height: 100vh; 
background-color: #f8fafc; 
transition: background-color 0.3s ease; 
}

.container {
max-width: 1200px; 
margin: 0 auto; 
padding: 0 10px; 
}

.above-search-area {
margin-bottom: 15px; 
padding: 10px 15px; 
background-color: transparent; 
border-radius: 0; 
box-shadow: none; 
border-bottom: 1px solid #e5e7eb; 
padding-bottom: 15px; 
}

body.dark-mode .above-search-area {
background-color: transparent;
box-shadow: none;
border-bottom-color: #4a5568; 
}

.above-search-area h3 {
margin-top: 0;
margin-bottom: 8px; 
color: #1f2937; 
font-size: 1.1em; 
border-bottom: none; 
padding-bottom: 0; 
}

body.dark-mode .above-search-area h3 {
color: #cbd5e0; 
}


.welcome-message {
font-size: 0.95em; 
color: #4b5563; 
margin-bottom: 10px; 
}

body.dark-mode .welcome-message {
color: #a0aec0; 
}

.popular-tags {
display: flex;
flex-wrap: nowrap; 
gap: 6px; 
margin-top: 8px; 
overflow-x: auto; 
-webkit-overflow-scrolling: touch; 
scrollbar-width: none; 
-ms-overflow-style: none;  
padding-bottom: 5px; 
}

.popular-tags::-webkit-scrollbar {
display: none; 
}

.tag {
background-color: #eef2f7; 
color: #1e3a8a; 
font-size: 0.8em; 
font-weight: 500;
padding: 4px 8px; 
border-radius: 20px; 
text-decoration: none; 
transition: background-color 0.3s ease, color 0.3s ease; 
cursor: pointer; 
flex-shrink: 0; 
}

.tag:hover {
background-color: #d1d9e6; 
color: #172554; 
}

body.dark-mode .tag {
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .tag:hover {
background-color: #5a67d8; 
color: #ffffff; 
}

.tag::before {
content: '#'; 
margin-right: 2px; 
}

.search-bar {
margin-bottom: 20px;
display: flex;
gap: 10px;
background-color: #ffffff; 
border-radius: 8px; 
padding: 8px; 
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
align-items: center; 
}

body.dark-mode .search-bar {
background-color: #2d3748;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-bar input[type="text"] {
flex-grow: 1; 
padding: 8px 12px; 
border: 1px solid #e5e7eb; 
border-radius: 4px; 
font-size: 1em;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar input[type="text"]:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); 
}

body.dark-mode .search-bar input[type="text"]:focus {
border-color: #90cdf4;
box-shadow: 0 0 0 3px rgba(144, 205, 244, 0.3);
}

.content-section {
margin-bottom: 40px; 
}

.course-grid {
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
gap: 10px; 
}

.course-card {
background-color: #ffffff; 
padding: 0; 
border-radius: 10px; 
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
display: flex; 
flex-direction: column; 
overflow: hidden; 
position: relative; 
transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; 
opacity: 0; 
transform: translateY(20px); 
animation: fadeInUp 0.5s ease-out forwards; 
}

.course-card:hover {
transform: translateY(-3px); 
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); 
}

.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.2s; }
.course-card:nth-child(4) { animation-delay: 0.3s; }
.course-card:nth-child(5) { animation-delay: 0.4s; }
.course-card:nth-child(6) { animation-delay: 0.5s; }
.course-card:nth-child(7) { animation-delay: 0.6s; }
.course-card:nth-child(8) { animation-delay: 0.7s; }

.course-card img {
width: 100%; 
height: auto; 
max-height: 200px; 
object-fit: cover; 
border-radius: 0; 
margin-bottom: 0; 
}

.course-card .card-content {
padding: 12px; 
display: flex;
flex-direction: column;
flex-grow: 1; 
}

.card-meta {
font-size: 0.8em; 
color: #6b7280; 
margin-bottom: 6px; 
display: flex; 
align-items: center; 
flex-wrap: wrap; 
gap: 4px; 
}

.card-meta span {
display: flex;
align-items: center;
}

.card-meta span i {
margin-right: 4px; 
color: #6b7280;
}

.card-meta .instructor-button {
display: none; 
}

.course-card h3 {
margin: 0 0 6px 0; 
color: #1f2937; 
font-size: 1.1em; 
font-weight: 600;
transition: color 0.3s ease; 
}

.course-card .course-description {
font-size: 0.85em; 
color: #4b5563; 
margin-bottom: 12px; 
flex-grow: 1; 
transition: color 0.3s ease; 
}

.course-card .card-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto; 
padding-top: 12px; 
border-top: 1px solid #e5e7eb; 
transition: border-top-color 0.3s ease; 
}

.course-card .view-course-button {
display: inline-flex; 
align-items: center; 
background-color: #eef2f7; 
color: #1e3a8a; 
font-size: 0.75em; 
font-weight: 600;
padding: 4px 8px; 
border-radius: 4px; 
text-decoration: none; 
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
margin-left: auto; 
}

.course-card .view-course-button:hover {
background-color: #d1d9e6; 
transform: scale(1.05) translateX(3px); 
}


.course-card .view-course-button i {
margin-left: 4px; 
margin-right: 0; 
color: #1e3a8a; 
}

body.dark-mode .course-card .view-course-button {
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .course-card .view-course-button:hover {
background-color: #5a67d8; 
color: #ffffff; 
}


.course-card .save-button {
font-size: 0.9em; 
color: #1e3a8a; 
cursor: pointer;
transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; 
position: absolute; 
top: 10px; 
right: 10px; 
z-index: 10; 
background-color: #eef2f7; 
padding: 5px 8px; 
border-radius: 6px; 
border: none; 
display: flex; 
align-items: center; 
justify-content: center; 
}

.course-card .save-button:hover {
color: #3b82f6; 
background-color: #d1d9e6; 
transform: scale(1.05); 
}

.course-card .save-button.saved {
color: #f59e0b; 
background-color: #fef3c7; 
}

body.dark-mode .course-card .save-button {
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .course-card .save-button:hover {
background-color: #5a67d8; 
color: #ffffff; 
}

body.dark-mode .course-card .save-button.saved {
color: #f6ad55; 
background-color: #92400e; 
}

.course-card .share-button {
font-size: 0.9em; 
color: #1e3a8a; 
cursor: pointer;
transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; 
position: static;
top: auto;
right: auto;
z-index: auto;
background-color: #eef2f7; 
padding: 4px 8px; 
border-radius: 4px; 
border: none; 
display: inline-flex; 
align-items: center; 
justify-content: center; 
margin-left: 4px; 
}

.course-card .share-button:hover {
color: #172554; 
background-color: #d1d9e6; 
transform: scale(1.05); 
}

body.dark-mode .course-card .share-button {
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .course-card .share-button:hover {
background-color: #5a67d8; 
color: #ffffff; 
}

.course-card .like-button {
font-size: 0.9em; 
color: #1e3a8a; 
cursor: pointer;
transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; 
background-color: #eef2f7; 
padding: 4px 8px; 
border-radius: 4px; 
border: none; 
display: inline-flex; 
align-items: center; 
justify-content: center; 
margin-left: 4px; 
}

.course-card .like-button:hover {
color: #3b82f6; 
background-color: #d1d9e6; 
transform: scale(1.05); 
}

.course-card .like-button.liked {
color: #28a745; 
background-color: #d4edda; 
}

body.dark-mode .course-card .like-button {
background-color: #4a5568; 
color: #e2e8f0; 
}

body.dark-mode .course-card .like-button:hover {
background-color: #5a67d8; 
color: #ffffff; 
}

body.dark-mode .course-card .like-button.liked {
color: #48bb78; 
background-color: #22543d; 
}

.course-card .category-button {
display: inline-flex; 
align-items: center; 
background-color: #eef2f7; 
color: #1e3a8a; 
font-size: 0.75em; 
font-weight: 600;
padding: 4px 8px; 
border-radius: 4px;
text-decoration: none; 
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
position: static; 
top: auto; 
left: auto; 
z-index: auto;
margin-right: 4px; 
}

.course-card .category-button:hover {
background-color: #d1d9e6; 
transform: scale(1.05); 
}


.course-card .category-button i {
margin-right: 5px; 
color: #1e3a8a; 
}

footer {
display: none; 
}

.mobile-nav {
display: none; 
}


@media (max-width: 768px) {
.main-content {
flex-direction: column; 
margin-top: 10px; 
}

header {
 position: static; 
 margin-bottom: 0; 
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

header h1 {
 font-size: 1.5em; 
}

.user-dropdown-button {
 font-size: 1.3em; 
 padding: 3px; 
}

.announcement-bar {
display: none;
}

aside {
display: none;
}

main {
margin-left: 0; 
height: auto; 
overflow-y: visible; 
padding: 10px; 
padding-bottom: 70px; 
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
gap: 15px; 
}

article { /* Bu genel article etiketi, course-card'ı etkileyebilir, dikkatli olunmalı */
 padding: 15px; 
 border-radius: 8px; 
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
 transform: none; 
}

article img { /* Bu genel article img etiketi, course-card img'i etkileyebilir */
width: 100%; 
height: auto; 
max-height: 180px; 
object-fit: cover; 
border-radius: 6px;
margin-bottom: 15px; 
}

.featured-article { /* Eğer .course-card.featured-course-card yerine kullanılıyorsa */
grid-column: span 1; 
flex-direction: column; 
}

.featured-article img {
height: 200px; 
}

.featured-article h2 {
font-size: 1.5em; 
}

article .card-meta {
font-size: 0.8em; 
margin-bottom: 8px;
}

article .seo-description { /* Bu sınıf kullanılmıyor gibi görünüyor */
font-size: 0.9em; 
margin-bottom: 10px;
}

article .card-actions {
padding-top: 8px;
}

article .read-more { /* Bu sınıf kullanılmıyor gibi görünüyor */
font-size: 0.85em;
}

article .favorite-button { /* Bu sınıf kullanılmıyor gibi görünüyor */
font-size: 1.1em;
}

.mobile-nav {
display: flex; 
position: fixed; 
bottom: 0; 
left: 0; 
width: 100%; 
background-color: #1e3a8a; 
color: #ffffff; 
justify-content: space-around; 
padding: 10px 0; 
z-index: 1000; 
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2); 
border-top: none; 
}

body.dark-mode .mobile-nav {
background-color: #2d3748; 
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}


.mobile-nav a {
color: #ffffff; 
text-decoration: none; 
padding: 5px 10px; 
border-radius: 4px; 
transition: background-color 0.3s ease, color 0.3s ease; 
font-size: 0.8em; 
display: flex; 
flex-direction: column; 
align-items: center; 
}

.mobile-nav a i {
 font-size: 1.2em; 
 margin-bottom: 3px; 
 color: #ffffff; 
}


.mobile-nav a:hover {
background-color: rgba(255, 255, 255, 0.1); 
color: #ffffff; 
}

.mobile-nav a:hover i {
color: #ffffff; 
}

footer { /* Eğer footer varsa mobil nav için boşluk */
margin-bottom: 60px;
}
}

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

.share-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); 
display: flex;
justify-content: center;
align-items: center;
z-index: 1000; 
visibility: hidden; 
opacity: 0; 
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal-overlay.visible {
visibility: visible;
opacity: 1;
}

.share-modal-content {
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
text-align: center;
position: relative;
max-width: 400px; 
width: 90%; 
transform: translateY(-20px); 
transition: transform 0.3s ease, opacity 0.3s ease; 
opacity: 0; 
}

.share-modal-overlay.visible .share-modal-content {
transform: translateY(0); 
opacity: 1; 
}


body.dark-mode .share-modal-content {
background-color: #2d3748;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .share-modal-content h3 {
color: #e2e8f0;
}

body.dark-mode .share-options a {
background-color: #4a5568;
color: #e2e8f0;
padding: 10px; 
border-radius: 8px; 
}

body.dark-mode .share-options a:hover {
background-color: #5a67d8;
color: #ffffff;
}

body.dark-mode .share-modal-content .close-button {
color: #e2e8f0;
}


.share-modal-content h3 {
margin-top: 0;
margin-bottom: 20px;
color: #1f2937;
}

.share-options {
display: flex;
justify-content: center;
gap: 15px; 
}

.share-options a {
display: inline-flex;
flex-direction: column;
align-items: center;
text-decoration: none;
color: #1e3a8a; 
font-size: 0.9em;
transition: color 0.3s ease, transform 0.2s ease;
}

.share-options a i {
font-size: 1.8em; 
margin-bottom: 5px;
}

.share-options a:hover {
color: #3b82f6; 
transform: scale(1.1); 
}

.share-options .fa-twitter { color: #1DA1F2; } 
.share-options .fa-whatsapp { color: #25D366; } 
.share-options .fa-linkedin-in { color: #0A66C2; } 


.share-modal-content .close-button {
position: absolute;
top: 10px;
right: 10px;
font-size: 1.2em;
cursor: pointer;
color: #6b7280;
transition: color 0.3s ease;
}

.share-modal-content .close-button:hover {
color: #333;
}

.copy-feedback {
margin-top: 10px;
font-size: 0.9em;
color: #28a745; 
visibility: hidden;
opacity: 0;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-feedback.visible {
visibility: visible;
opacity: 1;
}

.announcement-bar {
background-color: #eef2f7; 
color: #1e3a8a; 
padding: 6px 0; 
overflow: hidden; 
white-space: nowrap; 
position: relative; 
margin-bottom: 15px; 
border-radius: 4px; 
box-shadow: none; 
border: 1px solid #d1d9e6; 
}

body.dark-mode .announcement-bar {
background-color: #4a5568; 
color: #e2e8f0; 
border-color: #6b7280; 
}


.announcement-text {
display: inline-block; 
padding-left: 100%; 
animation: marquee 15s linear infinite; 
font-size: 0.9em; 
}

@keyframes marquee {
0% { transform: translateX(0); } 
100% { transform: translateX(-100%); } 
}

.dropdown-menu {
display: none; 
position: absolute; 
top: 100%; 
left: 0;
background-color: #ffffff; 
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
border-radius: 6px;
z-index: 950; 
width: 100%; 
padding: 5px 0; 
}

body.dark-mode .dropdown-menu {
background-color: #2d3748; 
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}


.dropdown-menu li {
margin: 0; 
}

.dropdown-menu li a {
padding: 8px 12px; 
font-size: 0.9em; 
color: #4b5563; 
}

body.dark-mode .dropdown-menu li a {
color: #a0aec0; 
}


.dropdown-menu li a:hover {
background-color: #eef2f7; 
color: #1e3a8a; 
}

body.dark-mode .dropdown-menu li a:hover {
background-color: #4a5568; 
color: #ffffff; 
}

.sidebar-dropdown.active .dropdown-menu {
display: block;
}

.dropdown-toggle {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}

.dropdown-toggle i.fas {
margin-right: 10px; 
}

.dropdown-toggle .dropdown-arrow {
margin-left: 10px; 
transition: transform 0.2s ease; 
}

.sidebar-dropdown.active .dropdown-toggle .dropdown-arrow {
transform: rotate(180deg); 
}

.highlight {
background-color: #ffff00; 
padding: 1px 2px; 
border-radius: 3px; 
}

body.dark-mode .highlight {
background-color: #f6ad55; 
color: #1a202c; 
}

.course-detail-container {
background-color: #ffffff; 
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
margin-bottom: 20px;
}

body.dark-mode .course-detail-container {
background-color: #2d3748;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.course-detail-container img {
width: 100%;
max-height: 400px; 
object-fit: cover;
border-radius: 8px;
margin-bottom: 20px;
}

.course-detail-container .video-placeholder {
width: 100%;
aspect-ratio: 16 / 9; 
background-color: #000; 
margin-bottom: 20px;
border-radius: 8px;
overflow: hidden; 
position: relative; 
display: flex;
justify-content: center;
align-items: center;
color: #fff; 
font-size: 1.5em;
}

.course-detail-container .video-placeholder video {
width: 100%;
height: 100%;
object-fit: cover; 
}

.course-detail-container h2 {
margin-top: 0;
color: #1f2937;
font-size: 2em;
margin-bottom: 10px;
}

body.dark-mode .course-detail-container h2 {
color: #e2e8f0;
}

.course-detail-container .course-meta {
font-size: 0.9em;
color: #6b7280;
margin-bottom: 20px;
display: flex; 
align-items: center;
flex-wrap: wrap; 
gap: 10px; 
}

body.dark-mode .course-meta {
color: #a0aec0;
}

.course-detail-container .action-button {
display: inline-flex; 
align-items: center; 
background-color: #eef2f7; 
color: #1e3a8a; 
font-size: 0.9em; 
font-weight: 600;
padding: 8px 12px; 
border-radius: 6px; 
text-decoration: none; 
transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; 
border: none; 
cursor: pointer;
}

body.dark-mode .course-detail-container .action-button {
background-color: #4a5568;
color: #e2e8f0;
}

.course-detail-container .action-button i {
margin-right: 8px; 
color: #1e3a8a; 
transition: color 0.3s ease; 
}

body.dark-mode .course-detail-container .action-button i {
color: #e2e8f0;
}

.course-detail-container .action-button:hover {
background-color: #d1d9e6; 
transform: scale(1.05); 
}

body.dark-mode .course-detail-container .action-button:hover {
background-color: #5a67d8;
color: #ffffff;
}

.course-detail-container .course-description {
font-size: 1em;
color: #4b5563;
margin-bottom: 30px;
}

body.dark-mode .course-detail-container .course-description {
color: #a0aec0;
}

.course-detail-container .course-description img {
    max-width: 100%; 
    height: auto;
    margin: 15px 0; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
}

body.dark-mode .course-detail-container .course-description img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); 
}

.course-detail-container .course-description pre {
    background-color: #f4f7f6; 
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; 
    margin: 15px 0; 
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace; 
    font-size: 0.9em;
    line-height: 1.4;
}

body.dark-mode .course-detail-container .course-description pre {
    background-color: #2d3748; 
    color: #e2e8f0; 
}

.course-detail-container .section-title {
color: #1f2937;
font-size: 1.5em;
margin-top: 30px;
margin-bottom: 15px;
border-bottom: 1px solid #e5e7eb;
padding-bottom: 8px;
}

body.dark-mode .course-detail-container .section-title {
color: #cbd5e0;
border-bottom-color: #4a5568;
}


.course-detail-container .curriculum-list {
list-style: none;
padding: 0;
}

.course-detail-container .curriculum-item {
background-color: #eef2f7;
padding: 12px;
margin-bottom: 8px;
border-radius: 6px;
display: flex;
align-items: center;
font-size: 0.95em;
color: #1e3a8a;
}

body.dark-mode .course-detail-container .curriculum-item {
background-color: #4a5568;
color: #e2e8f0;
}

body.dark-mode .course-detail-container .curriculum-item i { /* İkonlar için de renk ayarı */
color: #e2e8f0;
margin-right: 10px; /* İkon ve yazı arası boşluk */
}

body.dark-mode .course-detail-container .curriculum-item:hover {
background-color: #5a67d8;
}


.course-detail-container .reviews-section .review {
border-bottom: 1px solid #e5e7eb;
padding-bottom: 15px;
margin-bottom: 15px;
}

body.dark-mode .course-detail-container .review {
border-bottom-color: #4a5568;
}

.course-detail-container .reviews-section .review:last-child {
border-bottom: none;
margin-bottom: 0;
}

.course-detail-container .reviews-section .reviewer-name {
font-weight: bold;
margin-bottom: 5px;
color: #1f2937;
}

body.dark-mode .course-detail-container .review .reviewer-name {
color: #cbd5e0;
}

.course-detail-container .reviews-section .review-text {
font-size: 0.9em;
color: #4b5563;
}

body.dark-mode .course-detail-container .review .review-text {
color: #a0aec0;
}

.ai-summary-area {
background-color: #eef2f7;
padding: 15px;
border-radius: 8px;
margin-top: 20px;
border: 1px solid #d1d9e6;
position: relative; 
display: none; 
opacity: 0; 
transition: opacity 0.3s ease;
}

body.dark-mode .ai-summary-area {
background-color: #4a5568;
color: #e2e8f0;
border-color: #6b7280;
}

.ai-summary-area.visible {
display: block; 
opacity: 1; 
}

.ai-summary-area h4 {
margin-top: 0;
color: #1e3a8a;
font-size: 1.1em;
margin-bottom: 10px;
}

body.dark-mode .ai-summary-area h4 {
color: #cbd5e0;
}

.ai-summary-area p {
font-size: 0.95em;
color: #4b5563;
margin-bottom: 0;
}

body.dark-mode .ai-summary-area p {
color: #a0aec0; 
}

.ai-summary-area .close-ai-summary {
position: absolute;
top: 10px;
right: 10px;
font-size: 1.2em;
cursor: pointer;
color: #6b7280; 
transition: color 0.3s ease;
}

body.dark-mode .ai-summary-area .close-ai-summary {
color: #e2e8f0; 
}

.ai-summary-area .close-ai-summary:hover {
color: #333; 
}

body.dark-mode .ai-summary-area .close-ai-summary:hover {
color: #ffffff; 
}

.tags-area {
margin-top: 20px;
margin-bottom: 20px;
padding-top: 15px;
border-top: 1px solid #e5e7eb; 
display: flex;
flex-wrap: wrap;
gap: 8px; 
align-items: center;
}

body.dark-mode .tags-area {
border-top-color: #4a5568;
}


.tags-area h4 {
margin: 0 10px 0 0;
color: #1f2937;
font-size: 1em;
font-weight: 600;
}

body.dark-mode .tags-area h4 {
color: #cbd5e0;
}


.tags-area .tag {
background-color: #eef2f7; 
color: #1e3a8a; 
font-size: 0.8em; 
font-weight: 500;
padding: 4px 8px; 
border-radius: 20px; 
text-decoration: none; 
transition: background-color 0.3s ease, color 0.3s ease; 
cursor: pointer; 
}

body.dark-mode .tags-area .tag {
background-color: #4a5568;
color: #e2e8f0;
}


.tags-area .tag:hover {
background-color: #d1d9e6; 
color: #172554; 
}

body.dark-mode .tags-area .tag:hover {
background-color: #5a67d8;
color: #ffffff;
}

.tags-area .tag::before {
content: '#'; 
margin-right: 2px; 
}

.back-button {
display: inline-block;
margin-top: 20px;
padding: 10px 15px;
background-color: #1e3a8a;
color: #ffffff;
text-decoration: none;
border-radius: 6px;
transition: background-color 0.3s ease;
}

body.dark-mode .back-button {
background-color: #5a67d8;
}

.back-button:hover {
background-color: #172554;
}

body.dark-mode .back-button:hover {
background-color: #4c51bf;
}

   
.main-content-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
}
.main-content-scroll::-webkit-scrollbar {
    display: none;
}
.main-content-scroll {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
 
/* Form Container ve Elemanları için Genel Stiller (course_add, course_edit, category_add vb. için) */
.form-container {
    background-color: #ffffff; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

body.dark-mode .form-container {
    background-color: #2d3748; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    margin-top: 0;
    color: #1f2937;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

body.dark-mode .form-container h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

.form-group {
    margin-bottom: 20px; 
}

.form-group label {
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #374151; 
}

body.dark-mode .form-group label {
     color: #cbd5e0; 
}


.form-group input[type="text"],
.form-group input[type="url"], /* appsharing.php için eklendi */
.form-group input[type="file"], 
.form-group select,
.form-group textarea { 
    width: 100%; 
    padding: 0.75rem; /* Tailwind p-3 */
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 0.375rem; /* Tailwind rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Tailwind shadow-sm */
    font-size: 1em;
    font-family: 'Inter', sans-serif; 
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

 .form-group textarea {
     min-height: 100px; 
     resize: vertical; 
 }

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="url"],
body.dark-mode .form-group input[type="file"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea { 
    background-color: #374151; /* Tailwind gray-700 */
    border-color: #4b5563; /* Tailwind gray-600 */
    color: #f3f4f6; /* Tailwind gray-100 */
}

body.dark-mode .form-group input[type="text"]::placeholder,
body.dark-mode .form-group input[type="url"]::placeholder,
body.dark-mode .form-group textarea::placeholder { 
     color: #9ca3af; /* Tailwind gray-400 */
}


body.dark-mode .form-group select option {
     background-color: #374151; 
     color: #f3f4f6; 
}


.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="file"]:focus,
.form-group select:focus,
.form-group textarea:focus { 
    outline: none; 
    border-color: #3b82f6; /* Tailwind blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); /* Tailwind ring-blue-500/25 */
}
body.dark-mode .form-group input[type="text"]:focus,
body.dark-mode .form-group input[type="url"]:focus,
body.dark-mode .form-group input[type="file"]:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #60a5fa; /* Tailwind blue-400 */
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}


.form-actions {
    margin-top: 20px; 
    text-align: right; 
}

.form-actions button {
    background-color: #1e3a8a; 
    color: #ffffff; 
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

body.dark-mode .form-actions button {
     background-color: #5a67d8; 
     color: #ffffff; 
}


.form-actions button:hover {
    background-color: #172554; 
}

 body.dark-mode .form-actions button:hover {
     background-color: #4c51bf; 
 }

.image-preview {
     margin-top: 10px;
     max-width: 200px; 
     height: auto;
     border-radius: 8px;
     border: 1px solid #d1d5db;
     display: block; 
 }

 body.dark-mode .image-preview {
      border-color: #6b7280; 
 }

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
}

.success-message {
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb;
}
body.dark-mode .success-message {
     background-color: #2f855a; 
     color: #ebf8ff; 
}

body.dark-mode .error-message {
     background-color: #c53030; 
     color: #fff5f5; 
}

/* Summernote Dark Mode Stilleri */
body.dark-mode .note-editor.note-frame {
    border-color: #4b5563; /* Tailwind gray-600 */
    background-color: #374151; /* Tailwind gray-700 */
}

body.dark-mode .note-editor.note-frame .note-editing-area .note-editable {
    background-color: #374151; /* Tailwind gray-700 */
    color: #f3f4f6; /* Tailwind gray-100 */
}

body.dark-mode .note-editor.note-frame .note-toolbar {
    background-color: #1f2937; /* Tailwind gray-800 */
    border-bottom-color: #4b5563; /* Tailwind gray-600 */
}

body.dark-mode .note-editor.note-frame .note-toolbar .note-btn {
    color: #d1d5db; /* Tailwind gray-300 */
    background-color: transparent; /* Butonların arkaplanını şeffaf yap */
}
body.dark-mode .note-editor.note-frame .note-toolbar .note-btn:hover,
body.dark-mode .note-editor.note-frame .note-toolbar .note-btn:focus,
body.dark-mode .note-editor.note-frame .note-toolbar .note-btn:active {
    background-color: #4b5563; /* Tailwind gray-600 - Hover/Focus için */
    color: #ffffff; 
}
body.dark-mode .note-editor.note-frame .note-toolbar .note-dropdown-menu .note-dropdown-item a {
    color: #d1d5db; /* Dropdown içindeki linkler */
}
body.dark-mode .note-editor.note-frame .note-toolbar .note-dropdown-menu .note-dropdown-item a:hover {
    background-color: #4b5563;
    color: #ffffff;
}
body.dark-mode .note-editor.note-frame .note-status-output {
    background-color: #1f2937; /* Tailwind gray-800 */
    color: #9ca3af; /* Tailwind gray-400 */
    border-top-color: #4b5563; /* Tailwind gray-600 */
}
/* Liste Kapsayıcı Stilleri (category_list.php, course_list.php vb. için) */
.list-container { /* Bu sınıf zaten form-container ile aynı, gerekirse ayrılabilir */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
body.dark-mode .list-container {
    background-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.list-container h2 {
    margin-top: 0;
    color: #1f2937;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}
body.dark-mode .list-container h2 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

/* Tablo Stilleri (course_list.php için) */
.course-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.course-table thead th {
    background-color: #f9fafb; /* Tailwind gray-50 */
    color: #374151; /* Tailwind gray-700 */
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e5e7eb; /* Tailwind gray-200 */
    font-weight: 600;
}
body.dark-mode .course-table thead th {
    background-color: #374151; /* Tailwind gray-700 */
    color: #d1d5db; /* Tailwind gray-300 */
    border-bottom-color: #4b5563; /* Tailwind gray-600 */
}
.course-table tbody tr {
    border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
    transition: background-color 0.2s ease;
}
.course-table tbody tr:nth-of-type(even) {
    background-color: #f9fafb; /* Tailwind gray-50 */
}
.course-table tbody tr:hover {
    background-color: #f3f4f6; /* Tailwind gray-100 */
}
body.dark-mode .course-table tbody tr {
    border-bottom-color: #374151; /* Tailwind gray-700 */
}
body.dark-mode .course-table tbody tr:nth-of-type(even) {
    background-color: #1f2937; /* Tailwind gray-800 */
}
body.dark-mode .course-table tbody tr:hover {
    background-color: #374151; /* Tailwind gray-700 */
}
.course-table tbody td {
    padding: 12px 15px;
    color: #4b5563; /* Tailwind gray-600 */
    vertical-align: middle;
}
body.dark-mode .course-table tbody td {
    color: #d1d5db; /* Tailwind gray-300 */
}
.course-table td img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e5e7eb; /* Tailwind gray-200 */
    display: block;
    /* margin: 0 auto; */ /* Görseli sola yaslamak için kaldırıldı */
}
body.dark-mode .course-table td img {
    border-color: #4b5563; /* Tailwind gray-600 */
}
.course-table .actions a {
    color: #2563eb; /* Tailwind blue-600 */
    margin-right: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.course-table .actions a:hover {
    color: #1d4ed8; /* Tailwind blue-700 */
    text-decoration: underline;
}
body.dark-mode .course-table .actions a {
    color: #60a5fa; /* Tailwind blue-400 */
}
body.dark-mode .course-table .actions a:hover {
    color: #3b82f6; /* Tailwind blue-500 */
}

/* Kategori Listesi Stilleri (category_list.php için) */
.category-list-section {
    margin-top: 20px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    overflow: hidden; 
    background-color: #ffffff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.category-list li {
    border-bottom: 1px solid #e5e7eb; 
    transition: background-color 0.2s ease;
}
.category-list li:last-child {
    border-bottom: none; 
}
.category-list li a {
    display: block; 
    text-decoration: none;
    color: #1f2937; 
    padding: 15px 20px; 
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.category-list li a:hover {
    background-color: #f3f4f6; 
    color: #1e3a8a; 
}
body.dark-mode .category-list {
     background-color: #2d3748;
     border-color: #4a5568;
     box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
body.dark-mode .category-list li {
     border-bottom-color: #4a5568;
}
body.dark-mode .category-list li a {
     color: #e2e8f0;
}
body.dark-mode .category-list li a:hover {
     background-color: #374151; /* Tailwind gray-700 */
     color: #ffffff;
}

/* Silme Onay Sayfası Stilleri (course_delete.php için) */
.delete-confirmation {
    text-align: center; 
    padding: 20px;
}
.delete-confirmation h2 {
    color: #dc3545; 
    margin-bottom: 15px;
}
body.dark-mode .delete-confirmation h2 {
     color: #f87171; /* Tailwind red-400 */
}
.delete-confirmation p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #4b5563; /* Tailwind gray-600 */
}
 body.dark-mode .delete-confirmation p {
     color: #9ca3af; /* Tailwind gray-400 */
 }
.delete-confirmation .button-group {
    display: flex;
    justify-content: center; 
    gap: 20px; 
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto 20px auto; 
    align-items: stretch; 
}
.delete-confirmation .button-group button,
.delete-confirmation .button-group .cancel-button { 
     padding: 12px 25px; 
     font-size: 1.1em; 
     border-radius: 8px; 
     text-decoration: none; 
     display: inline-flex; 
     align-items: center; 
     justify-content: center; 
     transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; 
     flex-basis: 0; 
     flex-grow: 1; 
     border: 1px solid transparent; /* Kenarlık için hazırlık */
}
 .delete-confirmation .button-group button i,
 .delete-confirmation .button-group .cancel-button i {
     margin-right: 8px; 
 }
.delete-confirmation .button-group .cancel-button {
    background-color: #6b7280; /* Tailwind gray-500 */
    color: #ffffff; 
    border-color: #6b7280;
}
.delete-confirmation .button-group .cancel-button:hover {
    background-color: #4b5563; /* Tailwind gray-600 */
    border-color: #4b5563;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}
 body.dark-mode .delete-confirmation .button-group .cancel-button {
     background-color: #4b5563; /* Tailwind gray-600 */
     color: #e5e7eb; /* Tailwind gray-200 */
     border-color: #4b5563;
 }
 body.dark-mode .delete-confirmation .button-group .cancel-button:hover {
     background-color: #374151; /* Tailwind gray-700 */
     border-color: #374151;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
 }
.delete-confirmation .button-group .confirm-button {
    background-color: #dc3545; /* Red-600 */
    color: #ffffff; 
    border-color: #dc3545;
}
.delete-confirmation .button-group .confirm-button:hover {
    background-color: #c82333; /* Red-700 */
    border-color: #c82333;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}
 body.dark-mode .delete-confirmation .button-group .confirm-button {
     background-color: #b91c1c; /* Tailwind red-700 */
     color: #fecaca; /* Tailwind red-200 */
     border-color: #b91c1c;
 }
 body.dark-mode .delete-confirmation .button-group .confirm-button:hover {
     background-color: #991b1b; /* Tailwind red-800 */
     border-color: #991b1b;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
 }

/* --- Admin Dashboard Specific Styles --- */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between grid items */
    margin-bottom: 30px;
}

.overview-card {
    background-color: #eef2f7; /* Light background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #d1d9e6; /* Subtle border */
}

body.dark-mode .overview-card {
    background-color: #374151; /* Tailwind gray-700 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: #4b5563; /* Tailwind gray-600 */
    color: #e5e7eb; /* Tailwind gray-200 */
}

.overview-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .overview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.overview-card i {
    font-size: 2.5em;
    color: #1e3a8a; /* Dark blue icon */
    margin-bottom: 10px;
}

body.dark-mode .overview-card i {
    color: #60a5fa; /* Tailwind blue-400 */
}

.overview-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    color: #1f2937; /* Dark text */
}

body.dark-mode .overview-card h3 {
    color: #f3f4f6; /* Tailwind gray-100 */
}

.overview-card p {
    margin: 0;
    font-size: 1em;
    color: #4b5563; /* Grey text */
}

body.dark-mode .overview-card p {
    color: #9ca3af; /* Tailwind gray-400 */
}

.navigation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid for cards */
    gap: 20px;
}

.nav-card {
    background-color: #ffffff; /* White background */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none; /* Remove underline */
    color: #1f2937; /* Default text color */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid #e5e7eb; /* Subtle border */
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column; /* Stack icon and text */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    min-height: 120px; /* Minimum height for cards */
}

body.dark-mode .nav-card {
    background-color: #374151; /* Tailwind gray-700 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: #4b5563; /* Tailwind gray-600 */
    color: #e5e7eb; /* Tailwind gray-200 */
}

.nav-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f9fafb; /* Tailwind gray-50 */
}

body.dark-mode .nav-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background-color: #4b5563; /* Tailwind gray-600 */
}

.nav-card i {
    font-size: 2em;
    color: #1e3a8a; /* Dark blue icon */
    margin-bottom: 10px;
}

body.dark-mode .nav-card i {
    color: #60a5fa; /* Tailwind blue-400 */
}

.nav-card span {
    font-weight: 600;
    font-size: 1.1em;
}

/* Responsive Adjustments for dashboard cards on smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    .dashboard-overview,
    .navigation-cards {
         grid-template-columns: 1fr; /* Single column layout on mobile */
         gap: 15px; /* Adjust gap */
    }

    .overview-card,
    .nav-card {
         padding: 15px; /* Adjust padding */
    }

    .overview-card i,
    .nav-card i {
         font-size: 2em; /* Adjust icon size */
    }

    .overview-card h3 {
         font-size: 1.3em; /* Adjust heading size */
    }

    .nav-card span {
         font-size: 1em; /* Adjust text size */
    }

    /* Mobil görünümde silme butonları için */
    .delete-confirmation .button-group {
        flex-direction: column; 
        gap: 10px; 
        max-width: none; 
    }
    .delete-confirmation .button-group button,
    .delete-confirmation .button-group .cancel-button {
         width: 100%; 
         box-sizing: border-box;
         padding: 10px 15px; 
         font-size: 1em; 
         flex-basis: auto; 
         flex-grow: 0; 
    }
     .delete-confirmation .button-group button i,
     .delete-confirmation .button-group .cancel-button i {
         margin-right: 6px; 
     }
}


        /* 404 hata sayfası için özel stiller */
        .error-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            height: 100%; /* main alanı doldurması için */
            min-height: calc(100vh - 150px); /* Ekran yüksekliğinden header/footer payını çıkar */
            overflow: hidden; /* Animasyonların taşmasını önler */
        }
        .error-container .error-icon {
            font-size: 8rem;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            /* Hayalet ikonu için animasyon */
            animation: ghost-float-animation 4s ease-in-out infinite;
        }
        .error-container .error-code {
            font-size: 8rem;
            font-weight: 700;
            color: var(--text-color);
            margin: 0;
            line-height: 1;
            /* Belirme animasyonu eklendi */
            animation: fade-in-up 0.6s ease-out forwards;
            animation-delay: 0.2s;
            opacity: 0;
        }
        .error-container .error-message {
            font-size: 1.75rem;
            font-weight: 500;
            color: var(--text-color);
            margin-top: 1rem;
            margin-bottom: 2rem;
            /* Animasyon eklendi */
            animation: fade-in-up 0.6s ease-out forwards;
            animation-delay: 0.4s;
            opacity: 0;
        }
        .error-container .error-description {
            font-size: 1rem;
            color: var(--text-secondary-color);
            max-width: 400px;
            margin-bottom: 2.5rem;
            /* Animasyon eklendi */
            animation: fade-in-up 0.6s ease-out forwards;
            animation-delay: 0.6s;
            opacity: 0;
        }
        .error-container .home-button {
            display: inline-block;
            padding: 12px 24px;
            background-color: var(--primary-color);
            color: #fff;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            transition: background-color 0.3s ease, transform 0.2s ease;
            /* Animasyon eklendi */
            animation: fade-in-up 0.6s ease-out forwards;
            animation-delay: 0.8s;
            opacity: 0;
        }
        .error-container .home-button:hover {
            background-color: var(--primary-color-dark);
            transform: translateY(-2px);
        }

        /* Hayalet ikonu için süzülme animasyonu */
        @keyframes ghost-float-animation {
            0% {
                transform: translateY(0px) rotate(-8deg);
            }
            50% {
                transform: translateY(-20px) rotate(8deg);
            }
            100% {
                transform: translateY(0px) rotate(-8deg);
            }
        }

        /* Diğer elementler için aşağıdan gelerek belirme animasyonu */
        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


 
        /* Özel stil tanımları */
        .course-card img {
            object-fit: cover; /* Resmin kartı tam doldurmasını sağlar */
            height: 140px; /* Kart görselinin sabit yüksekliği */
            width: 100%; /* Genişliği tam kapla */
        }
        .course-card-description {
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Açıklamadan sadece 3 satır göster */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Öne çıkan kurs kartı için özel stil */
        .featured-course-card img {
             height: 200px; /* Öne çıkan kart görselinin yüksekliği */
        }
        .category-filter-tags .tag {
            cursor: pointer; /* Etiketlerin tıklanabilir olduğunu belirt */
            transition: background-color 0.3s ease;
        }
         .category-filter-tags .tag:hover {
            background-color: #e2e8f0; /* Hover rengi */
        }
         .category-filter-tags .tag.active {
            background-color: #3182ce; /* Aktif etiket rengi */
            color: white;
        }
 