html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #212529;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper {
  flex: 1; /* yeni: esneklik eklendi */
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  justify-content: flex-start;
  padding-top: 30px;
}

#favoriteButtonContainer button {
  padding: 8px 12px;
  font-size: 1em;
  cursor: pointer;
}

.companyDetailBox {
  display: flex;
  align-items: center;       /* Dikey ortalama */
  justify-content: center;   /* Yatayda ortalama */
  gap: 10px;                 /* Görsel ve buton arası boşluk */
}

.logo{
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.loginForm input, .signupForm input{
  margin: 10px;
  width: 250px;
}

.loginForm button .signupForm button{
  margin: 10px;
}

.adTablesWrapper {
  padding: 20px;
}

.newPortfolioItemButton, .newCompanyItemButton, .newCompanyPortfolioItemButton, .excelUpdateButton, .exportButton{
  position: relative;
  color: white;
  background-color: #0e73c6;
  margin-top: 10px;
  margin-right: 10px;
  padding: 6px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* adTablesWrapper zaten tüm sayfayı kapsıyor */

#adPortfolioContainer, #feedbackMailContainer {
  display: flex;          /* İçindeki kartları yan yana dizer */
  flex-wrap: wrap;        /* Sığmazsa alt satıra geçir */
  gap: 15px;              /* Kartlar arası boşluk */
  padding: 10px;
}

#feedbackMailContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: left; /* ortala */
  padding: 10px;
}

.feedbackMailItem, .portfolioItem {
  background-color: #3b2b60;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 400px; 
}

/* Inputlar genişliği %100 yap */
.portfolioItem input[type="number"], #kurumSelect, #hisseSelect {
  width: 100%;           /* Hücreye tam sığsın */
  box-sizing: border-box; /* Padding dahil genişlik */
  padding: 4px 6px;
  border-radius: 4px;
  border: none;
  font-size: 1em;
}

/* Butonların biraz boşluğu olsun */
.portfolioItem button {
  margin-top: 10px;
  margin-right: 10px;
  padding: 6px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#feedbackTable td {
  max-width: 300px;        /* 300px üst sınır */
  word-wrap: break-word;   /* Uzun kelimeleri böl */
  white-space: normal;     /* İçerik taşarsa alt satıra geçsin */
  padding: 4px 8px;        /* Gerekirse azaltılabilir */
  vertical-align: top;     /* Üstten hizalama */
}

.adTopnav {
  background-color: #605f5f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px; /* Sabit yükseklik */
  box-sizing: border-box;
}

.adTopnav a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%; /* Tüm topnav yüksekliği */
  line-height: 50px; /* Dikey hizalama için */
  padding: 0 16px; /* Önemli! Yükseklik taşmaması için */
}

.adTopnav a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.adTopnav a:hover {
    transform: scale(1.15);    /* hafif büyüme efekti */
    background-color: #ddd;
    color: black;
}

.adTopnav a.active {
    background-color: #04AA6D;
    color: white;
}

#portfolioContainer, #portfolioDetailContainer, #portfolioCompanies, #companyDetailContainer, #companyPortfolioContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* ortala */
  padding: 20px;
}

#portfolioDetailBoxLastPrice{
font-size: larger;
color: #ffffff;
}


#companyContainer, #portfolioContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* ortala */
  padding: 20px;
}

#companyPortfolioContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* ortala */
  padding: 20px;
  
}

.portfolioItem, .companyItem, .companyPortfolioItem {
  background-color: #3b2b60;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 290px;
  box-sizing: border-box;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #605f5f;
  padding: 0 15px;
  height: 50px;
  position: relative;
}

.nav-right {
  position: absolute;
  right: 0px;
  height: 48px;
  display: flex;              /* eklendi */
  align-items: center;        /* dikeyde ortalama */
  padding-right: 25px;        /* sağa biraz boşluk */
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    transform: scale(1.15);    /* hafif büyüme efekti */
    color: black;
}

.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

.communicate #infoMail{
    margin-left: 25px;
}

h1{
    font-weight: bolder;
    font-size: 36px;
    color: white;
}

.communicate p{
    font-size: 16px;
}

.communicate h2{
    font-weight: bolder;
    font-size: 20px;
}

.communicate-form {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
  margin-left: 50px;
  margin-bottom: 50px;
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.communicate-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.communicate-form input[type="text"],
.communicate-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.communicate-form input[type="text"]:focus,
.communicate-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.communicate-form input[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.communicate-form input[type="submit"]:hover {
  background-color: #0056b3;
  cursor: pointer;
}

#xicon{
    -webkit-filter: invert(1);
   filter: invert(1);
   height: 48px;

}

footer {
  display: flex;
  justify-content: center; /* logoyu ortaya hizalar */
  align-items: center;
  padding: 6px 20px;
  background-color: darkslategray;
  /*#2a2e32;*/
  /*rgb(245, 168, 142);*/
  color: rgb(45, 2, 2);
  width: 100%;
  margin-top: auto;
  font-size: 13px;
  height: 140px;
  box-sizing: border-box;
  position: relative;
}

footer h3 {
  font-size: 14px;
  margin: 0;
  padding: 0;
  line-height: 1;
  color: whitesmoke;
}

footer p{
  color: thistle;
}

footer a{
  color: #007bff;
}

#privacy{
  color: slategray;
}

.footer-left{
  position: absolute;
  left: 20px;
  font-size: 12px;
  color: whitesmoke;
}

.footer-center {
  align-items: center;
  gap: 10px;
}

.footer-center-top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.footer-center-center{
  text-align: center;
  margin-left: 15px;
  font-size: 14px;
  margin-bottom: 0px;
}

.footer-center-bottom{
  margin-left: 10px;
  margin-top: 0px;
  text-align: center;
}


footer img.logo {
  width: 32px;
  height: 32px;
  margin: 0;
}

.footer-right {
  position: absolute;
  right: 20px;
  font-size: 12px;
  color: whitesmoke;
}

table td {
    padding: 10px;
}

#lastPrice {
    font-weight: bold;
    font-size: 80%;
    color: #656363;
    padding: 5px;
}

#lastPriceVal {
    font-weight: bold;
    font-size: 80%;
    color: #656363;
    padding: 5px;
}

#targetPrice {
    font-weight: bold;
    font-size: 80%;
    color: #03b9a3;
    padding: 5px;
}

#targetPriceVal {
    font-weight: bold;
    font-size: 80%;
    color: #03b9a3;
    padding: 5px;
}

#potReturn {
    font-weight: bold;
    font-size: 80%;
    color: #0e73c6;
    padding: 5px;
}

#potReturnVal {
    font-weight: bold;
    font-size: 80%;
    color: #0e73c6;
    padding: 5px;
}

#portfolioCompany {
    font-weight: bold;
    font-size: 100%;
    color: #ffffff;
    padding: 5px;
}

#portfolioDate {
    font-weight: bold;
    font-size: 70%;
    color: #a5a3a3;
    padding: 5px;
    text-align: center;
    position: relative;
    bottom: 0px;
}

#valueTable{
    width: 250px;
}

#hr{
    padding: 0;
}

#tbTitle{
    text-align: center;
    padding: 0;
}

.portfolioForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #3b2b60;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  margin-top: 20px;
}

.companyForm {
  display: flex;
  flex-direction: column;
  position: relative;
  right: 5px;
  gap: 10px;
  background-color: #3b2b60;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  margin-top: 20px;
}

.portfolioForm input, .portfolioForm button, .companyForm input, .companyForm button,
.loginForm input, .loginForm button, .signupForm input, .signupForm button{
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  border: none;
  box-sizing: border-box;
}

.portfolioForm button, .companyForm button {
  background-color: #03b9a3;
  color: white;
  cursor: pointer;
}


/* Sayfayı karartan arka plan */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Yasal Uyarı kutusu */
.modal-content {
  max-height: 90vh; /* yüksekliği sınırlayıp */
  overflow-y: auto; /* içeriğe özel kaydırma */
  background-color: #fff;
  color: #000;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


.modal-content h2 {
  margin-top: 0;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #04AA6D;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #028a5e;
  cursor: pointer;
}

.rizaMetni, .hakkimizda {
  width: 47%;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 5px 8px 16px 20px rgba(0, 0, 0, 0.15); /* Yumuşak alt gölge */
  border-radius: 8px; /* Köşeleri biraz yuvarla (isteğe bağlı) */
  background-color: #212529;
  padding: 15px; /* İç boşluk (isteğe bağlı) */
  
}

#searchBar {
  gap: 10px;
  background-color: #3b2b60;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  margin-top: 20px;
  color: #ffffff;
  position: absolute;
  right: 20px; /* sağa hizalama için kullanılır */
  top: 95px;  /* gerektiğinde yukarıdan mesafeyi ayarla */
}

/* Placeholder metnini beyaz yap */
#searchBar::placeholder {
  color: #ffffff;
  opacity: 1;
}

#paginationControls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  gap: 15px;
}

#paginationControls button {
  padding: 10px 15px;
  background-color: #3b2b60;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.signupForm button, .loginForm button{
  padding: 10px 20px;
  background-color: #3b2b60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 10px;
  color: white;
}

.dropdown-menu {
  top: 35px;
  display: none;
  position: absolute;
  right: 0;
  background-color: #8e6ed7;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
}

.dropdown-menu button {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.dropdown.show .dropdown-menu {
  display: block;
}

.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
}

#userDropdown a {
  color: white;
  text-decoration: none;
  margin-right: 15px; /* araya boşluk */
  padding: 6px 10px;
  display: inline-block;
  border-radius: 6px;
  background-color: #8e6ed7;
  transition: background-color 0.3s ease;
}

#userDropdown a:hover {
  background-color: #7457bd;
  cursor: pointer;
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border: 1px solid #ccc;
  width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: absolute;
  right: 0;
  display: none; /* toggle ile gösterilecek */
  z-index: 1000;
}

.dropdown.show .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.dropdown-menu li button:hover {
  background-color: #f2f2f2;
  cursor: pointer;
}
.icon {
  width: 16px;
  height: 16px;
}

.authContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 160px); /* üst ve alt boşluk için */
  text-align: center;
}

.authMessage {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #656363;
}

.authButtons {
  display: flex;
  gap: 20px;
}

.authButtons a{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.authButtons a:hover {
  background-color: #004999;
  cursor: pointer;
}

#forgotPass{
  color: whitesmoke;
  margin-left: 20px;
  margin-right: 20px;
}

#adLogoutBtn{
  padding: 10px 20px;
  width: 120px;
  height: 15px;
  background-color: #3b2b60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#kvkkModal, #gizlilikModal {
  display: none;
 
}

#kvkkModal .modal-content,
#gizlilikModal .modal-content {
  background-color: white;
  color: black;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: start;
}

.veriSecim {
  margin: 1rem 0;
  display: flex;
  gap: 10px;
}

.veriSecim input[type="radio"] {
  display: none;
}

.veriSecim label {
  padding: 8px 16px;
  border: 2px solid #03b9a3;
  border-radius: 8px;
  background-color: #fff;
  color: #03b9a3;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.veriSecim input[type="radio"]:checked + label {
  background-color: #03b9a3;
  color: white;
}

#tbTitle:hover{
  font-style: italic;
  color: #007bff;
  cursor: pointer;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
  padding: 10px 15px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #333;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.mobile-menu a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

.mobile-menu a:hover {
  background-color: #555;
  cursor: pointer;
}

.desktop-menu {
  display: flex;
}

#portfolioImage:hover, #compImage:hover {
  cursor: pointer;
}
.favori-btn {
  margin-top: 8px;
  cursor: pointer;
  padding: 0 12px;       /* dikey padding kaldırdık */
  height: 120px;         /* istediğin kesin yükseklik */
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  background-color: #e74c3c;
  color: white;
  box-shadow: none;
  transition: background-color 0.25s ease;
  user-select: none;
  display: flex;          /* ortalamak için flex */
  align-items: center;    /* dikey ortala */
  justify-content: center; /* yatay ortala */
}

.favori-btn:hover {
  background-color: #c0392b; /* biraz koyu hover */
}

.favori-btn:active {
  background-color: #a93226;
  transform: scale(0.95);
}


/* Tab container */
#tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  background: none;
  border: none;
}

/* Tab butonları */
.tab {
  position: relative; /* Mutlaka ekle */
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0 6px 0;
  cursor: pointer;
  color: #fff;
  margin: 10px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

/* Hover efekti */
.tab:hover {
  color: #555;
  border-bottom-color: #aaa;
}

/* Dikey çizgi: alt çizgiden bağımsız */
.tab:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px; /* tablar arası boşluğun ortasında */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ccc;
}

/* Aktif tab */
.tab.active {
  color: #555;
  border-bottom-color: #0077ff;
  font-weight: 600;
}


/* Mobil uyumu */
@media (max-width: 600px) {
  #tabs {
    gap: 12px;
    margin-top: 50px;
  }
  .tab {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start; /* sola hizalama */
    height: auto;            /* yükseklik esnek olsun */
    padding: 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    position: static;        /* position absolute'leri kaldır */
    margin-bottom: 20px;
    width: 100%;
  }

  .footer-center {
    align-items: flex-start;
  }

  .footer-center-top,
  .footer-center-center,
  .footer-center-bottom {
    margin-left: 0;
    text-align: left;
  }

  footer img.logo {
    margin-left: 0;
  }


  .desktop-menu {
    display: none;
  }

  .topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 50px; /* Yükseklik sabitlendi */
    position: relative;
  }

  .nav-left {
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: block;
    font-size: 24px;
  }

  .mobile-menu {
    position: absolute;
    top: 50px; /* hamburger butonunun altına açılır */
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    background-color: #333;
    z-index: 999;
  }

  .nav-right {
    display: flex;
    align-items: center;
    position: static;
    padding: 0;
    margin: 0;
    height: 100%;
  }

  .dropdown-toggle {
    padding: 0 10px;
    font-size: 14px;
  }

  .rizaMetni{
    width: 90%;
    margin-bottom: 10px;
  }

  #searchBar{
    margin-top: 55px;
  }

  #portfolioContainer, #companyContainer{
    margin-top: 35px;
  }


  .modal-content {
    width: 80%;
    height: 80%;
    padding: 20px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .communicate-form {
  margin-left: 0px;
  width: 85%;
}

}

