/* dashborad sayfasi icin stil baslangici */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --success-color: #4cc9f0;
  --info-color: #4895ef;
  --warning-color: #f72585;
  --danger-color: #e63946;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

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

.header {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.user-info {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-welcome {
  font-size: 16px;
  color: #444;
}

.user-credit {
  display: flex;
  align-items: center;
  background-color: rgba(67, 97, 238, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 3px;
}

.credit-icon {
  margin-right: 6px;
  font-size: 16px;
}

.credit-value {
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 4px;
}

.credit-label {
  color: #666;
}

.logout-btn {
  background-color: var(--danger-color);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background-color: #c72c2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.change-password-btn {
  background-color: var(--info-color);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.change-password-btn:hover {
  background-color: #3a7bd5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.panel-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin: 0 15px;
}

.panel-btn {
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.admin-btn {
  background-color: #3a0ca3;
  color: white;
}

.admin-btn:hover {
  background-color: #2a077a;
  transform: translateY(-2px);
}

.reseller-btn {
  background-color: #4895ef;
  color: white;
}

.reseller-btn:hover {
  background-color: #3a7bd5;
  transform: translateY(-2px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col {
  flex: 1;
  padding: 10px;
  min-width: 300px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.card-header i {
  margin-right: 10px;
}

.card-body {
  padding: 20px;
}

.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.bg-success {
  background-color: var(--success-color);
  color: white;
}

.bg-info {
  background-color: var(--info-color);
  color: white;
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-success {
  background-color: var(--success-color);
}

.btn-info {
  background-color: var(--info-color);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

pre {
  background-color: #f7f7f9;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid var(--info-color);
}

.file-upload {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  cursor: pointer;
  display: block;
}

.file-upload-label {
  display: block;
  padding: 12px;
  background: #f0f0f0;
  border: 1px dashed #aaa;
  border-radius: 6px;
  text-align: center;
  color: #555;
  transition: all 0.3s;
}

.file-upload:hover .file-upload-label {
  background: #e0e0e0;
  border-color: #888;
}

.footer {
  margin-top: 30px;
  text-align: center;
}

.footer .btn {
  max-width: 300px;
  margin: 0 auto;
}

.warning-message {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border-left: 4px solid #ffeeba;
  font-size: 14px;
}

@media (max-width: 768px) {
  .col {
    flex: 100%;
  }
  
  .header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .user-info {
    align-items: center;
  }
  
  .user-credit {
    justify-content: center;
  }
  
  .panel-buttons {
    order: 2;
    width: 100%;
    margin: 10px 0;
  }
  
  .panel-btn {
    width: 100%;
    text-align: center;
  }
  
  .logout-btn, .change-password-btn {
    width: 100%;
    margin: 5px 0;
  }
}

#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#loadingMessage {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  font-size: 18px;
  color: #333;
}

/* Yeni error message stilini ekliyorum */
.error-container {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-left: 5px solid #e63946;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: shake 0.5s, pulse 2s infinite;
    max-width: 80%;
    min-width: 300px;
    border-radius: 5px;
}

.error-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #e63946;
    font-weight: bold;
}

.error-icon {
    font-size: 24px;
    margin-right: 10px;
    animation: rotate 1s infinite;
}

.error-message {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.error-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

@keyframes shake {
    0%, 100% {transform: translateX(-50%);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(calc(-50% - 5px));}
    20%, 40%, 60%, 80% {transform: translateX(calc(-50% + 5px));}
}

@keyframes pulse {
    0% {box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);}
    50% {box-shadow: 0 4px 20px rgba(230, 57, 70, 0.6);}
    100% {box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);}
}

@keyframes rotate {
    0% {transform: rotate(0deg);}
    25% {transform: rotate(-10deg);}
    75% {transform: rotate(10deg);}
    100% {transform: rotate(0deg);}
}
/* dashborad sayfasi icin stil bitisi */

/* index sayfasi icin stil baslangici */
:root { 
    /* Lighter color scheme */
    --primary-color: #007bff; /* Standard Bootstrap primary blue */
    --secondary-color: #6c757d; /* Standard Bootstrap secondary gray */
    --accent-color: #ffc107; /* Standard Bootstrap warning yellow */
    --light-bg: #f8f9fa; /* Very light background */
    --card-bg: #ffffff; /* White card background */
    --text-dark: #212529; /* Dark text */
    --text-muted: #6c757d; /* Muted text */
    --border-color: #dee2e6; /* Light border color */
}

body {
    background-color: var(--light-bg); /* Use light background */
    background-image: none; /* Remove complex background gradients */
    color: var(--text-dark); /* Use dark text */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Use system fonts for simplicity */
    line-height: 1.6; /* Slightly adjusted line height */
}

/* Navbar Styling */
.navbar {
    background-color: var(--card-bg); /* Use light background for navbar */
    backdrop-filter: none; /* Remove backdrop filter */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    padding-top: 0.5rem; /* Slightly less padding */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color); /* Add a light border */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem; /* Slightly smaller */
    color: var(--primary-color);
    text-shadow: none; /* Remove text shadow */
}

.navbar-nav .nav-link {
    color: var(--text-dark); /* Dark link color */
    font-weight: 400; /* Lighter font weight */
    padding: 0.5rem 0.8rem; /* Reduced padding */
    transition: color 0.2s ease, background-color 0.2s ease; /* Faster transition */
    border-radius: 0; /* Remove border radius */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color); /* Highlight color on hover/active */
    background-color: rgba(0, 123, 255, 0.1); /* Subtle hover background */
}

 .navbar .btn-outline-light {
    /* Adjust for light theme */
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 400;
    transition: all 0.2s ease;
   }
   .navbar .btn-outline-light:hover {
    background-color: var(--primary-color);
    color: #ffffff;
   }
   .navbar .btn-primary { /* Primary button for sign up */
    font-weight: 400;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
   }
    .navbar .btn-primary:hover {
     background-color: #0056b3; /* Darker shade on hover */
     border-color: #0056b3;
    }


/* Hero Section */
.hero-section {
    padding: 4rem 0; /* Reduced padding */
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem; /* Reduced heading size */
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: none; /* Remove text shadow */
    margin-bottom: 0.8rem; /* Reduced margin */
}

.hero-section .lead {
    font-size: 1.1rem; /* Reduced lead size */
    color: var(--text-muted);
    margin-bottom: 1.5rem; /* Reduced margin */
    max-width: 600px; /* Reduced max width */
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    max-width: 70%; /* Further reduce image size */
    height: auto;
    margin-top: 1.5rem; /* Reduced margin */
    border-radius: 8px; /* Smaller radius */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    border-radius: 8px; /* Smaller radius */
    backdrop-filter: none; /* Remove backdrop filter */
    overflow: hidden;
}

.card-header {
    background: var(--primary-color); /* Solid primary color background */
    color: #ffffff;
    font-size: 1.2rem; /* Reduced header size */
    font-weight: 600;
    padding: 0.8rem 1.2rem; /* Reduced padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Add a light border */
    text-align: left; /* Align left */
}

.card-body {
    padding: 1.2rem; /* Reduced padding */
    color: var(--text-dark);
}

/* Table Styling */
.table {
    background-color: transparent;
    margin-bottom: 0;
     /* Removed border-radius for table */
     overflow: hidden;
}

.table thead th {
    background-color: #e9ecef; /* Light header background */
    color: var(--text-dark); /* Dark header text */
    font-weight: 600;
    font-size: 0.9rem; /* Reduced font size */
    border-bottom: 2px solid var(--border-color); /* Lighter border */
    border-top: none !important;
    text-align: left; /* Align left */
    padding: 0.7rem; /* Reduced padding */
}

.table tbody td {
    color: var(--text-dark); /* Dark text */
    vertical-align: middle;
    border-color: var(--border-color); /* Light border */
    text-align: left; /* Align left */
    padding: 0.7rem; /* Reduced padding */
    font-size: 0.9rem; /* Reduced font size */
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
     background-color: rgba(0, 0, 0, 0.03); /* Subtle striping */
     color: var(--text-dark); /* Ensure text color remains */
   }

.table-hover > tbody > tr:hover > * {
    background-color: rgba(0, 123, 255, 0.05); /* Lighter hover effect */
    color: var(--text-dark); /* Ensure text color remains */
}

.badge {
    font-size: 0.8em; /* Smaller badge font size */
    padding: 0.4em 0.7em; /* Reduced padding */
    font-weight: 600;
     /* Relying on Bootstrap's standard badge colors (e.g., text-bg-secondary, text-bg-success) */
}

.badge .bi {
    margin-left: 3px; /* Smaller space */
    font-size: 0.9em; /* Smaller icon size */
}


/* Button Styling (Download Button) */
.btn-primary {
    background: var(--primary-color); /* Solid background */
    border: 1px solid var(--primary-color); /* Add border */
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; /* Faster transition */
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2); /* Lighter shadow */
    border-radius: 4px; /* Standard button shape */
    padding: 10px 25px; /* Standard padding */
    font-weight: 600; /* Slightly less bold */
    font-size: 1rem; /* Standard font size */
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3;
    transform: translateY(-1px); /* Less pronounced hover effect */
    box-shadow: 0 5px 12px rgba(0, 123, 255, 0.3); /* Lighter shadow on hover */
    color: #ffffff;
}
 .btn-primary .bi { /* Icon spacing for LTR download button */
     margin-right: 6px; /* Reduced margin */
 }


/* Distributor Cards Styling */
.distributor-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Smaller radius */
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Faster transition */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.distributor-card:hover {
    transform: translateY(-4px); /* Less pronounced hover effect */
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2); /* Lighter shadow on hover */
}

.distributor-card .card-header {
    font-size: 1rem; /* Further reduced header size */
    font-weight: 600;
    padding: 0.7rem 1rem; /* Reduced padding */
    background: var(--primary-color); /* Solid background */
    color: #ffffff;
    text-align: left; /* Align left */
}

.distributor-card .card-body {
    padding: 1.2rem; /* Reduced padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.distributor-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem; /* Reduced margin */
    text-align: left; /* Align left */
     font-size: 1.2rem; /* Adjusted size */
}

.distributor-info {
    color: var(--text-muted);
    font-size: 0.85rem; /* Reduced font size */
    line-height: 1.6; /* Slightly reduced line height */
    margin-bottom: 0.8rem; /* Reduced margin */
}

.distributor-info i {
    color: var(--secondary-color); /* Use secondary color for icons */
    margin-right: 6px; /* Reduced space */
    width: 14px; /* Adjusted width */
    text-align: center;
}

.distributor-info span, .distributor-info a {
     color: var(--text-dark); /* Dark text for contact info */
 }
  .distributor-info strong { /* Label styling */
      color: var(--text-muted);
      margin-right: 4px; /* Reduced margin */
  }


.distributor-web a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.distributor-web a:hover {
    color: #0056b3; /* Darker shade on hover */
    text-decoration: underline;
}

.stars {
    color: var(--accent-color);
    text-align: left; /* Align left */
    font-size: 1rem; /* Reduced font size */
    margin-top: auto;
}

/* Footer */
.footer {
    background-color: var(--card-bg); /* Use light background */
    color: var(--text-muted);
    padding: 1rem 0; /* Reduced padding */
    margin-top: 3rem; /* Reduced margin */
    border-top: 1px solid var(--border-color); /* Light border */
    font-size: 0.85rem; /* Reduced font size */
}
.footer a {
    color: var(--primary-color);
    text-decoration: none;
}
.footer a:hover {
    color: #0056b3; /* Darker shade on hover */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjust scroll padding */
}

/* Offer Banner Styling */
.offer-banner {
    background-color: #ffc107; /* Warning yellow */
    color: #343a40; /* Dark text */
    padding: 1rem 0;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem; /* Space below the banner */
    border-bottom: 3px solid #ff9800; /* Darker yellow border */
}

.offer-banner .container {
    max-width: 800px; /* Limit width for better readability */
}

.offer-banner p {
    margin: 0.5rem 0;
}

.offer-banner strong {
    color: #dc3545; /* Danger red for emphasis */
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .distributor-card {
        margin-bottom: 1rem; /* Reduced margin */
    }
}
@media (max-width: 768px) {
     .navbar-nav {
         margin-top: 0.8rem; /* Reduced space */
     }
     .navbar-nav .nav-link {
         padding: 0.6rem 0.8rem; /* Reduced touch target */
     }
     .navbar .auth-buttons {
         flex-direction: column;
         align-items: stretch !important;
         width: 100%;
         margin-top: 0.8rem; /* Reduced margin */
         gap: 0.4rem !important; /* Reduced gap */
     }
     .navbar .auth-buttons .btn {
         width: 100%;
     }
    .hero-section {
        padding: 3rem 0; /* Reduced padding */
    }
     .hero-image {
         max-width: 95%;
     }
     .card-header {
         font-size: 1.1rem;
     }
     .card-body {
         padding: 1rem;
     }
     .table thead th, .table tbody td {
         padding: 0.6rem; /* Reduced table padding */
         font-size: 0.85rem;
     }
     .distributor-card .card-header {
         font-size: 0.95rem;
     }
     .distributor-card .card-body {
         padding: 1rem;
     }
     .distributor-card h4 {
         font-size: 1.1rem;
     }
     .distributor-info {
         font-size: 0.8rem;
     }
     .offer-banner {
         padding: 0.8rem 0; /* Reduced padding on mobile */
     }
}
/* index sayfasi icin stil bitisi */

