:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc05;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 80px; /* Footer için alan */
}
/* Logo Stili */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .logo {
        font-size: 1.2rem;
    }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ve Navigasyon */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer-buttons {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    color: var(--dark-color);
    text-decoration: none;
    flex: 1;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.footer-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-btn:hover {
    color: var(--primary-color);
}

.footer-btn.active {
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
}

/* Mobil için body padding ayarı */
body {
    padding-bottom: 70px; /* Footer yüksekliğine göre ayarlayın */
}

/* Mobil görünüm için */
@media (max-width: 768px) {
    .footer-btn span {
        font-size: 0.7rem;
    }

    .footer-btn i {
        font-size: 1.2rem;
    }
}


/* Başlıklar */
h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
}

h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Kartlar */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Formlar */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Butonlar */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #d62516;
}

.btn-success {
    background-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #2d9249;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Tablolar */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Ürün Kartları */
.product-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.product-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    text-align: center;
}

/* Filtreler */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Raporlar */
.report-section {
    margin-bottom: 25px;
}

.report-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 18px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.summary-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.notes-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    white-space: pre-line;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Kar/Zarar Stilleri */
.kar {
    color: var(--secondary-color);
    font-weight: bold;
}

.zarar {
    color: var(--danger-color);
    font-weight: bold;
}

.kar-zarar {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
}

.kar-zarar.kar {
    background-color: rgba(52, 168, 83, 0.1);
}

.kar-zarar.zarar {
    background-color: rgba(234, 67, 53, 0.1);
}

/* Uyarı Mesajları */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.alert-danger {
    background-color: rgba(234, 67, 53, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px
      @keyframes slideIn {
          from { transform: translateY(-50px); opacity: 0; }
          to { transform: translateY(0); opacity: 1; }
      }

      .close {
          color: #aaa;
          float: right;
          font-size: 28px;
          font-weight: bold;
          cursor: pointer;
          transition: var(--transition);
      }

      .close:hover,
      .close:focus {
          color: var(--dark-color);
          text-decoration: none;
      }

      /* Login sayfası */
      .login-container {
          max-width: 500px;
          margin: 50px auto;
      }

      .login-container .card {
          padding: 30px;
      }

      /* Responsive Tasarım */
      @media (max-width: 768px) {
          body {
              padding-top: calc(var(--header-height) + 10px);
              padding-bottom: 70px;
          }

          .product-inputs {
              grid-template-columns: 1fr;
          }

          .filter-form {
              grid-template-columns: 1fr;
          }

          .button-group {
              flex-direction: column;
          }

          .btn {
              width: 100%;
              text-align: center;
          }

          .header {
              padding: 0 10px;
          }

          .nav-menu {
              display: none; /* Mobil menü için */
          }

          .mobile-menu-btn {
              display: block;
          }

          h1 {
              font-size: 1.5rem;
          }

          h2 {
              font-size: 1.3rem;
          }

          .card {
              padding: 15px;
          }

          .modal-content {
              width: 95%;
              margin: 5% auto;
              padding: 20px;
          }
      }

      /* Animasyonlar */
      @keyframes fadeIn {
          from { opacity: 0; }
          to { opacity: 1; }
      }

      .fade-in {
          animation: fadeIn 0.5s;
      }

      /* Yükleniyor Spinner */
      .spinner {
          border: 4px solid rgba(0, 0, 0, 0.1);
          width: 36px;
          height: 36px;
          border-radius: 50%;
          border-left-color: var(--primary-color);
          animation: spin 1s linear infinite;
          margin: 20px auto;
      }

      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
      }

      /* Tooltip */
      .tooltip {
          position: relative;
          display: inline-block;
      }

      .tooltip .tooltip-text {
          visibility: hidden;
          width: 120px;
          background-color: var(--dark-color);
          color: #fff;
          text-align: center;
          border-radius: 6px;
          padding: 5px;
          position: absolute;
          z-index: 1;
          bottom: 125%;
          left: 50%;
          margin-left: -60px;
          opacity: 0;
          transition: opacity 0.3s;
      }

      .tooltip:hover .tooltip-text {
          visibility: visible;
          opacity: 1;
      }

      /* Özel Scrollbar */
      ::-webkit-scrollbar {
          width: 10px;
      }

      ::-webkit-scrollbar-track {
          background: #f1f1f1;
      }

      ::-webkit-scrollbar-thumb {
          background: #888;
          border-radius: 5px;
      }

      ::-webkit-scrollbar-thumb:hover {
          background: #555;
      }
