/* Genel stil ayarları */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #B2D8F7; /* Bebek mavisi */
  margin: 0;
  padding: 0;
}

/* Giriş ekranı container */
.login-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
  margin: auto;
  margin-top: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profil fotoğrafı - Giriş ekranı ve profil küçük */
.profile-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.profile-img-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Inputlar */
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 16px;
}

/* Butonlar */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Güncellenmiş Mavi Butonlar */
.btn-pink {
  background-color: #1877F2; /* Facebook Mavisi */
  color: white;
  font-weight: 600;
}

.btn-pink:hover {
  background-color: #0f5dc8;
}

/* Misafir ve Kayıt Butonlarının kapsayıcıları */
.guest-register {
  width: 100%;
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.guest-btn {
  flex: 1; /* Eşit genişlik için */
  padding: 12px;
  font-size: 16px;
}


.register-link {
  color: #ff69b4;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Üst bar - Home sayfası */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #b2ebf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Hoş geldin yazısı */
.welcome-text {
  font-size: 22px;
  font-weight: bold;
  color: #004d40;
}

/* Profil butonu */
.profile-button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Profil kutusu */
#profile-box {
  position: absolute;
  top: 70px;
  right: 20px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: none;
  width: 220px;
}

#profile-box input,
#profile-box textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Ana içerik */
.main-content {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Menü butonları */
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 250px;
}

.menu-button {
  padding: 15px 25px;
  font-size: 18px;
  background-color: white;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: #000;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: #e1f5fe;
}

.menu-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  color: #666;
}

.nav-button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #005792;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #003f66;
}

/* Logout butonu */
.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #c82333;
}

/* Top bar sağ taraf düzenlemesi */
.profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Admin Panel Stilleri */
.admin-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
}

.admin-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.admin-section h3 {
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 5px;
}

/* PDF Upload Form */
.upload-form {
  display: grid;
  gap: 15px;
  max-width: 500px;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  border-color: #667eea;
  outline: none;
}

.upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* PDF Listesi */
.pdf-list {
  display: grid;
  gap: 15px;
}

.pdf-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-info h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.pdf-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.pdf-actions {
  display: flex;
  gap: 10px;
}

.btn-edit {
  background-color: #28a745;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-edit:hover {
  background-color: #218838;
}

.btn-delete:hover {
  background-color: #c82333;
}

/* İstatistikler */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 2em;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  color: #666;
  margin-top: 5px;
}

/* Content Box (eksik olan) */
.content-box {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-box h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.content-box ul {
  list-style: none;
  padding: 0;
}

.content-box ul li {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.content-box ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.content-box ul li a:hover {
  color: #667eea;
}

/* Loading Spinner */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ders Notları Sayfası İçin Ek CSS */

.filter-section {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.filter-section h3 {
  color: #333;
  margin-bottom: 15px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pdf-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #667eea;
  transition: all 0.3s ease;
}

.pdf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.pdf-header h4 {
  color: #333;
  font-size: 1.3em;
  margin: 0;
  flex: 1;
}

.pdf-category {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  margin-left: 15px;
}

.pdf-description {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.5;
}

.pdf-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #888;
}

.pdf-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdf-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.btn-view,
.btn-download {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-view {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
}

.btn-download {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}

.btn-view:hover,
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stats-section {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.loading-message {
  text-align: center;
  padding: 50px;
  color: #666;
}

/* Loading screen için */
#loading-screen .loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
  
  .pdf-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .pdf-category {
    align-self: flex-start;
    margin-left: 0;
  }
  
  .pdf-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .pdf-actions {
    flex-direction: column;
  }
  
  .btn-view,
  .btn-download {
    width: 100%;
  }
}

/* Şifre container stilleri - bu kısmı style.css'e ekle */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 45px; /* Sağda buton için yer bırak */
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  width: auto;
  height: auto;
}

.password-toggle:hover {
  background-color: rgba(0,0,0,0.1);
  border-radius: 50%;
}

/* Profil fotoğrafı yükleme stilleri - bu kısmı style.css'e ekle */

.photo-upload-section {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px;
  border: 2px dashed #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.current-photo {
  margin-bottom: 10px;
}

.profile-photo-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-upload-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: auto;
}

.photo-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Profile box genişletme */
#profile-box {
  width: 280px; /* Biraz daha geniş yap */
}

/* Şifre container stilleri */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  width: auto;
  height: auto;
}

.password-toggle:hover {
  background-color: rgba(0,0,0,0.1);
  border-radius: 50%;
}

/* --- UNO Oyunu Stilleri --- */

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.game-board {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.card-placeholder {
    width: 80px;
    height: 120px;
    border: 2px dashed #999;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background-color: #eee;
}

.deck-container {
    position: relative;
}

.discard-pile {
    border-color: #667eea;
}

.player-hands {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hand {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
}

.hand p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Kartların kendisi için genel stil */
.card {
    width: 60px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card:hover {
    transform: translateY(-5px);
}

.card-group {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Kart renkleri */
.card.red { background-color: #e74c3c; }
.card.blue { background-color: #3498db; }
.card.green { background-color: #2ecc71; }
.card.yellow { background-color: #f1c40f; }
.card.black { background-color: #34495e; }

/* Kartın arka yüzü (rakip için) */
.card-back {
    background-color: #c0392b;
    border: 1px solid #a03025;
}
