/* Reset ve Temel Stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #221638;
  background-color: transparent;
  background-image: linear-gradient(90deg, #D7E1EC 0%, #FFFFFF 30%);
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.5);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo a {
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: white;
  background: #FF0000 !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  color: white;
  background: #A00000 !important;
}

/* Main Content */
.main {
  min-height: calc(100vh - 140px);
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #A00000;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Pricing */
.pricing-info {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-top: 2rem;
}

.price-card {
  background: #FF0000;
  color: white;
  padding: 2rem;
  border-radius: 50px;
  text-align: center;
  max-width: 300px;
  flex: 1;
}

.free-plan {
  background: #8d8d8d;
}

.premium-plan {
  background: linear-gradient(309deg, rgba(160, 0, 0, 1) 0%, rgba(219, 219, 219, 1) 100%);;
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.price-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tests Grid */
.tests-section {
  margin-top: 3rem;
}

.tests-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #A00000;
}

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

.test-card {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.test-card:hover {
  transform: translateY(-5px);
}

.test-card h4 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #A00000;
}

.test-card p {
  color: #666;
  margin-bottom: 1rem;
}

.test-info {
  margin-bottom: 1.5rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.best-score {
  background: #27ae60;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: bold;
}

/* Profile Styles */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.user-card {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-card h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

.user-details p {
  margin-bottom: 0.5rem;
}

.membership-status {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.premium-benefits {
  margin-top: 1rem;
  color: #27ae60;
  font-size: 0.9rem;
  line-height: 1.8;
}

.upgrade-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.upgrade-notice h4 {
  margin-bottom: 1rem;
  color: #A00000;
}

.upgrade-notice ul {
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.upgrade-notice li {
  margin-bottom: 0.5rem;
}

.stats-card {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-card h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

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

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #FF0000;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

.test-performance {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-performance h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

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

.performance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.test-name {
  font-weight: bold;
}

.test-score {
  color: #FF0000;
  font-weight: bold;
}

.percentage {
  color: #666;
  font-size: 0.875rem;
}

.recent-activity {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

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

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.activity-info {
  flex: 1;
}

.activity-score {
  font-weight: bold;
  color: #FF0000;
  margin-left: 1rem;
}

.activity-time {
  color: #666;
  font-size: 0.875rem;
  margin-left: 1rem;
}

.free-user-notice {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.free-user-notice h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #FF0000;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  background: #A00000;
}

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

.btn-primary:hover {
  background: #FF0000;
  color: white;
}
btn-login {
  background: #A00000;
  color: white;
}
btn-login:hover {
  background: #FF0000;
  color: white;
}
btn-registeruser {
  background: #A00000;
  color: white;
}
btn-registeruser:hover {
  background: #FF0000;
  color: white;
}

.btn-test {
  background: #A00000;
  color: white;
}
.btn-test:hover {
  background: #FF0000;
  color: white;
}

.btn-secondary {
  background: white;
  color: #A00000;
}

.btn-secondary:hover {
  background: #FF0000;
  color: white;
}

.btn-success {
  background: #27ae60;
}

.btn-success:hover {
  background: #229954;
}

.btn-warning {
  background: #f39c12;
}

.btn-warning:hover {
  background: #e67e22;
}

.btn-danger {
  background: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-info {
  background: #A00000;
}

.btn-info:hover {
  background: #FF0000;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

/* Quiz Styles */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.free-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: center;
}

.question-card {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.question-header {
  margin-bottom: 1rem;
}

.question-number {
  background: #FF0000;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
}

.question-image {
  margin: 1rem 0;
  text-align: center;
}

.question-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.option:hover {
  border-color: #FF0000;
  background-color: #f8f9fa;
}

.option input[type="radio"] {
  margin-right: 1rem;
}

.option-letter {
  font-weight: bold;
  margin-right: 1rem;
  min-width: 30px;
}

.option-text {
  flex: 1;
}

.quiz-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Result Styles */
.result-container {
  max-width: 800px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.score-card {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.score-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.score-details {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.result-message {
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 2rem;
}

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

.result-message.warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.answer-review {
  margin-top: 2rem;
}

.review-question {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #e9ecef;
}

.review-question.correct {
  border-left-color: #27ae60;
}

.review-question.incorrect {
  border-left-color: #e74c3c;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.answer-comparison {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
}

.correct {
  color: #27ae60;
  font-weight: bold;
}

.incorrect {
  color: #e74c3c;
  font-weight: bold;
}

.result-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Auth Forms */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(309deg, rgba(160, 0, 0, 1) 0%, rgba(219, 219, 219, 1) 100%);
  backdrop-filter: blur(8px);
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.auth-form h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #A00000;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #FF0000;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
}

.auth-link a {
  color: #FF0000;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Payment Styles */
.payment-container {
  max-width: 800px;
  margin: 0 auto;
}

.payment-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.price-details {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-details h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

.price-details ul {
  list-style: none;
  margin-bottom: 2rem;
}

.price-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.price-details li:before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 0.5rem;
}

.price-box {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.price-box .price {
  font-size: 2rem;
  font-weight: bold;
  color: #FF0000;
}

.price-note {
  color: #666;
  font-size: 0.875rem;
}

.payment-form {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bank-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.bank-info p {
  margin-bottom: 0.5rem;
}

.payment-note {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border-radius: 4px;
  border: 1px solid #ffeaa7;
}

/* Admin Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: #A00000;
  color: white;
  padding: 2rem 0;
}

.admin-logo {
  margin-bottom: 2rem;
}

.admin-logo h2 {
  font-size: 1.5rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
}

.admin-nav .nav-item {
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  transition: background-color 0.3s;
}

.admin-nav .nav-item:hover,
.admin-nav .nav-item.active {
  background-color: #FF0000;
}

.admin-main {
  flex: 1;
  background: #f8f9fa;
}

.admin-header {
  background: white;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  color: #A00000;
}

.admin-content {
  padding: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  color: #666;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #FF0000;
}

/* Quick Actions */
.quick-actions {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.quick-actions h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Recent Activity */
.recent-activity {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
  margin-bottom: 1rem;
  color: #A00000;
}

/* Admin Tables */
.table-container {
  background: white;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-table th {
  background: #f8f9fa;
  font-weight: bold;
  color: #A00000;
}

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

.admin-table .actions {
  white-space: nowrap;
}

.admin-table .actions .btn {
  margin-right: 0.5rem;
  margin-bottom: 0;
}

.question-preview {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status Badges */
.status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: bold;
}

.status.active {
  background: #d4edda;
  color: #155724;
}

.status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.status.premium {
  background: #fff3cd;
  color: #856404;
}

.status.free {
  background: #e2e3e5;
  color: #383d41;
}

/* Admin Forms */
.form-container {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #221638;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

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

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

/* Install Styles */
.install-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.install-form {
  background: white;
  padding: 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
}

.install-form h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: #A00000;
}

.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-align: center;
}

.success a {
  color: #155724;
  font-weight: bold;
}

.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: #A00000;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

/* Filter Info */
.filter-info {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    justify-content: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .pricing-info {
    flex-direction: column;
    align-items: center;
  }

  .tests-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-content {
    grid-template-columns: 1fr;
  }

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

  .answer-comparison {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
  }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-nav .nav-item {
    white-space: nowrap;
  }

  .action-buttons {
    flex-direction: column;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-table {
    font-size: 0.875rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .question-card {
    padding: 1rem;
  }

  .options {
    gap: 0.5rem;
  }

  .option {
    padding: 0.75rem;
  }

  .auth-form {
    padding: 1.5rem;
    margin: 1rem;
  }

  .payment-form,
  .price-details {
    padding: 1rem;
  }

  .admin-content {
    padding: 1rem;
  }

  .form-container {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .admin-sidebar,
  .admin-header,
  .btn,
  .nav,
  .actions {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .admin-main {
    margin: 0 !important;
    padding: 0 !important;
  }
}
