/* ========================================= */
/*           Genel YazÄ± Fontu (Poppins)      */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* (Ä°KONLAR Ä°Ã‡Ä°N) Font Awesome veya benzeri bir kÃ¼tÃ¼phaneyi kullanÄ±yorsanÄ±z ekleyin:
   @import url('https://use.fontawesome.com/releases/v5.15.4/css/all.css'); 
   veya <link rel="stylesheet" href="..."> ile <head> iÃ§inde.
*/

body, input, select, textarea, button {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* TaÅŸmalarÄ± Ã¶nlemek iÃ§in */
}

/* ========================================= */
/*                 Header / MenÃ¼             */
/* ========================================= */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #333;
  color: #fff;
  padding: 10px 20px;
  height: 80px; /* Header yÃ¼ksekliÄŸi */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px; /* Logo boyutu */
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin-right: 20px;
}

.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav ul li a:hover {
  text-decoration: underline;
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions span {
  margin-right: 15px;
}

.logout-btn {
  color: #fff;
  text-decoration: none;
  background: #ff5722;
  padding: 6px 12px;
  border-radius: 4px;
}

.logout-btn:hover {
  background: #e64a19;
}

/* ========================================= */
/*                Footer Stili               */
/* ========================================= */
.main-footer {
  margin-top: 60px; /* Ä°Ã§erikten 60px aÅŸaÄŸÄ±da */
  background: #f4f4f4;
  padding: 10px 20px;
  text-align: center;
  color: #555;
}

/* ========================================= */
/*             Home SayfasÄ± Stilleri         */
/* ========================================= */
.home-content {
  padding: 20px;
}

.welcome-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stats-section {
  display: flex;
  gap: 20px;
}

.stat-box {
  flex: 1;
  background: #f4f4f4;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-box h2 {
  margin-bottom: 10px;
}

.stat-box p {
  margin-bottom: 15px;
}

.stat-box .btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #007bff;
  padding: 8px 16px;
  border-radius: 4px;
}

.stat-box .btn:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .stats-section {
    flex-direction: column;
  }
}

/* ========================================= */
/*          Projeler SayfasÄ± (Eski)          */
/* ========================================= */
.projects-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-container h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: center;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.projects-table th,
.projects-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.projects-table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

.projects-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.projects-table tr:hover {
  background-color: #f1f1f1;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background-color: #0056b3;
}

/* ========================================= */
/*               Modal Stilleri              */
/* ========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff0000;
}

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

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-group textarea {
  resize: vertical;
}

/* ========================================= */
/*    KullanÄ±cÄ± Yetki YÃ¶netimi SayfasÄ±       */
/* ========================================= */
.user-permissions-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-permissions-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

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

.permissions-table th,
.permissions-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.permissions-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.permissions-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.permissions-table tr:hover {
    background-color: #f1f1f1;
}

.permissions-table select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

/* ========================================= */
/*    Projects Page Styles (GÃ¼ncel)          */
/* ========================================= */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.projects-header h1 {
  margin: 0;
}

.add-project-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.add-project-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Table Responsive Wrapper (EKLENDÄ°) */
.table-responsive {
  width: 100%;
  overflow-x: auto; /* Dar ekranda yatay kaydÄ±rma */
  margin-bottom: 20px;
  border-radius: 8px;
  background: #fff; /* Tablo arka planÄ±yla bÃ¼tÃ¼nleÅŸsin */
}

/* Projects Table */
.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th,
.projects-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  min-width: 100px; /* AÅŸÄ±rÄ± dar hÃ¼creleri engellemek iÃ§in */
}

.projects-table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

.projects-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.projects-table tr:hover {
  background-color: #f1f1f1;
}

/* Modal (Koyu Arka Plan, OrtalanmÄ±ÅŸ Ä°Ã§erik) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Daha koyu arka plan */
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  position: relative;
  box-sizing: border-box;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff0000;
}

/* Form ElemanlarÄ± (Modal Ä°Ã§indeki) */
.form-group {
  margin-bottom: 15px;
}

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.form-group textarea {
  resize: vertical;
}

/* Modal Ä°Ã§indeki Buton */
.add-project-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.add-project-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
  }
  .modal-content h2 {
    font-size: 1.3rem;
  }
}

/* Filtre Formunun genel kutu gÃ¶rÃ¼nÃ¼mÃ¼ */
.filter-form {
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

/* Her satÄ±r kendi iÃ§inde flex */
.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px; /* SatÄ±rlar arasÄ± boÅŸluk */
}

/* Tek tek filtre Ã¶ÄŸeleri (label + select) */
.filter-item {
  display: flex;
  flex-direction: column; /* Label Ã¼stte, select altta */
  min-width: 180px;       /* Filtrelerin Ã§ok daralmasÄ±nÄ± Ã¶nler */
}

.filter-item label {
  font-weight: 500;
  margin-bottom: 5px;
}

.filter-item select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-item select:hover {
  border-color: #007bff;
}

/* Filtrele Butonu */
.filter-btn {
  background-color: #28a745;
  color: #fff;
  padding: 7px 15px;
  border-radius: 4px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-end; /* Butonu satÄ±rÄ±n altÄ±na yaslar */
}

.filter-btn:hover {
  background-color: #218838;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========== DÃ¼zenle/Sil ButonlarÄ± ========== */
.edit-btn,
.open-btn,
.delete-btn {
  display: inline-block;
  margin-right: 5px;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

/* DÃ¼zenle Butonu */
.edit-btn {
  background-color: #ffc107; /* SarÄ± */
  color: #fff;
}
.edit-btn:hover {
  background-color: #e0a800; 
}

/* Sil Butonu */
.delete-btn {
  background-color: #dc3545; /* KÄ±rmÄ±zÄ± */
  color: #fff;
}
.delete-btn:hover {
  background-color: #c82333;
}

/* GÃ¶rÃ¼ntÃ¼le Butonu */
.open-btn {
  background-color: #5353ec; /* Beyaz */
  color: #fff;
}
.open-btn:hover {
  background-color: #5353ec;
}

/* ========================= */
/*     Ek: Ikonlu Butonlar   */
/* ========================= */
/* EÄŸer Font Awesome vb. kullanacaksanÄ±z: */
.edit-btn i, .open-btn i, .delete-btn i {
  margin-right: 1px;
  font-size: 12px;
}

/* Tablo Dar Ekranda Yatay KaydÄ±rma (Tablet/Telefon) */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }
  .filter-item {
    min-width: auto;
  }
}

/* ========== Chat SayfasÄ± (LinkedIn Benzeri) ========== */

/* chat-page-wrapper: sayfanÄ±n Ã¼st kÄ±smÄ±nda boÅŸluk */
.chat-page-wrapper {
  margin-top: 20px;
}

/* chat-container: solda kullanÄ±cÄ± listesi, saÄŸda mesaj alanÄ± */
.chat-container {
  display: flex;
  height: calc(80vh - 80px); /* header 80px -> sayfanÄ±n %80'i kadar */
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
}

.user-list-container {
  width: 250px;
  border-right: 1px solid #ddd;
  background: #fafafa;
  overflow-y: auto;
}

.user-list-container h2 {
  padding: 15px;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  margin: 0;
  background: #fff;
}

.user-list-item {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.user-list-item:hover {
  background: #e9e9e9;
}

.user-list-item.active {
  background: #d9d9d9;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f9f9f9;
}

.chat-message {
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-message strong {
  font-weight: 600;
  color: #333;
  margin-right: 5px;
}

.chat-attachment a {
  color: #007bff;
  text-decoration: underline;
}

.chat-input {
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-textarea {
  flex: 1;
  resize: none;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  min-height: 40px;
}

.chat-send-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-send-btn:hover {
  background-color: #0056b3;
}

/* Emoji ve Dosya ButonlarÄ± */
.emoji-btn,
.file-attach-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.emoji-btn:hover,
.file-attach-btn:hover {
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-container {
    flex-direction: column;
    height: auto;
    margin: 10px;
  }
  .user-list-container {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    height: auto;
  }
  .chat-main {
    height: calc(100vh - 160px);
  }
}

/* ========================= */
/*     Brand Sayfa Stilleri  */
/* ========================= */
.brands-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.brands-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.brand-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.brand-header {
    background: #f2f2f2;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.brand-header img {
    height: 50px;
    margin-right: 15px;
}
.brand-header h3 {
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
}
.accordion-toggle {
    font-size: 1.5rem;
    font-weight: bold;
}
.brand-content {
    display: none;
    padding: 15px;
    background: #fff;
}
.brand-details {
    margin-bottom: 10px;
}
.brand-details img {
    height: 50px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}
.project-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.project-status {
    background: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
}


/* Announcements sayfasÄ± stilleri */
.announcements-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.welcome-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.welcome-box img {
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.welcome-box h2 {
    font-size: 1.8rem;
    margin: 0;
}
.announcement-box {
    margin-bottom: 30px;
}
.announcement-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}
.announcement-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.announcement-description {
    font-size: 1rem;
    margin-bottom: 10px;
}
.announcement-date {
    font-size: 0.9rem;
    color: #888;
    text-align: right;
}
.announcement-form .form-group {
    margin-bottom: 15px;
}
.announcement-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.announcement-form input[type="text"],
.announcement-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.announcement-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.announcement-submit-btn:hover {
    background-color: #0056b3;
}
.no-announcements {
    text-align: center;
    font-style: italic;
    color: #555;
}


/* Profile SayfasÄ± Stilleri */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.profile-info {
    text-align: center;
    margin-bottom: 30px;
}
.profile-info img {
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}
.profile-info h3 {
    font-size: 1.8rem;
    margin: 0;
}
.profile-info p {
    font-size: 1rem;
    color: #555;
}
.profile-form .form-group {
    margin-bottom: 15px;
}
.profile-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.profile-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.profile-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}
.profile-submit-btn:hover {
    background-color: #0056b3;
}

/* Tasks SayfasÄ± Stilleri */
.tasks-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.welcome-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.welcome-box img {
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.welcome-box h2 {
    font-size: 1.8rem;
    margin: 0;
}
.task-box {
    margin-bottom: 30px;
}
.task-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
}
.task-header {
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    background: #f2f2f2;
    border-radius: 4px;
}
.task-details {
    display: none;
    padding: 10px;
}
.task-details p {
    margin: 5px 0;
}
.task-action {
    margin-top: 10px;
}
.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}
.today-deadline {
    background: #ffeeba;
}
.overdue-deadline {
    background: #f5c6cb;
}
.task-form {
    margin-top: 30px;
}
.task-form .form-group {
    margin-bottom: 15px;
}
.task-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.task-form input[type="text"],
.task-form input[type="date"],
.task-form textarea,
.task-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.task-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}
.task-submit-btn:hover {
    background-color: #0056b3;
}
.no-tasks {
    text-align: center;
    font-style: italic;
    color: #555;
}


.user-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.user-nav ul li {
  margin-right: 15px;
}

.user-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.user-nav ul li a:hover {
  text-decoration: underline;
}

/* Team SayfasÄ± - Dikey Liste */
.team-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.team-box {
    display: block;
    margin-bottom: 30px;
}
.team-member {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
}
.team-member img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}
.team-info {
    flex: 1;
}
.team-info h3 {
    margin: 0;
    font-size: 1.3rem;
}
.team-info p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #555;
}
.team-actions {
    display: flex;
    gap: 10px;
}
.team-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
}
.edit-btn {
    background-color: #ffc107;
}
.edit-btn:hover {
    background-color: #e0a800;
}
.delete-btn {
    background-color: #dc3545;
}
.delete-btn:hover {
    background-color: #c82333;
}

/* Yeni KullanÄ±cÄ± Ekleme Formu */
.team-form {
    margin-top: 30px;
}
.team-form .form-group {
    margin-bottom: 15px;
}
.team-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.team-form input[type="text"],
.team-form input[type="password"],
.team-form input[type="file"],
.team-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.team-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
}
.team-submit-btn:hover {
    background-color: #0056b3;
}

/* User Edit Modal */
#editUserModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
#editUserModal .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
#editUserModal .close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
#editUserModal .close-btn:hover {
    color: #ff0000;
}

/* Invoices SayfasÄ± Stilleri */
.invoices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.new-invoice-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    background: #fff;
}
.new-invoice-form h2 {
    margin-top: 0;
}
.new-invoice-form .form-group {
    margin-bottom: 15px;
}
.new-invoice-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.new-invoice-form input[type="number"],
.new-invoice-form input[type="text"],
.new-invoice-form input[type="date"],
.new-invoice-form select,
.new-invoice-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.invoice-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.invoice-submit-btn:hover {
    background-color: #0056b3;
}
.recent-invoices {
    margin-bottom: 30px;
}
.invoices-table {
    width: 100%;
    border-collapse: collapse;
}
.invoices-table th,
.invoices-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.invoices-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}
.no-invoices {
    text-align: center;
    font-style: italic;
    color: #555;
}
.invoice-filters {
    margin-bottom: 30px;
    text-align: center;
}
.invoice-filters .filter-btn {
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.invoice-filters .filter-btn:hover {
    background-color: #218838;
}
.invoice-stats {
    margin-top: 30px;
}
.stats-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-box {
    flex: 1;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.stat-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
}
.stat-box ol {
    padding-left: 20px;
    text-align: left;
}
.stat-box ol li {
    margin-bottom: 5px;
}

/* Modal Invoices Table */
.modal-invoices-table {
    width: 100%;
    border-collapse: collapse;
}
.modal-invoices-table th,
.modal-invoices-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.modal-invoices-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

/* Invoice Filter Modal */
#invoiceModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
#invoiceModal .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
}
#invoiceModal .close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
#invoiceModal .close-btn:hover {
    color: #ff0000;
}

/* Fatura sayfasÄ± iÃ§in ek stiller */
.details-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.details-btn:hover {
  background-color: #45a049;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

#descriptionModal .modal-content {
  max-width: 600px;
}

#descriptionContent {
  margin-top: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ========================= */
/*     Team Page New Styles     */
/* ========================= */

/* Team Dashboard Container */
.team-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.team-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.team-dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.add-team-member-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.add-team-member-btn:hover {
  background-color: #0056b3;
}

/* Departments Section */
.departments-section {
  margin-bottom: 40px;
}

.departments-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.department-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.department-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.member-count {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.sub-departments {
  margin-top: 15px;
}

.sub-department {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sub-department .name {
  font-size: 14px;
  font-weight: 500;
}

.sub-department .count {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* Team Members Section */
.members-section {
  margin-bottom: 40px;
}

.members-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.team-department {
  margin-bottom: 30px;
}

.team-department-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  color: #333;
}

.team-subdepartment {
  margin-top: 20px;
  margin-bottom: 30px;
}

.team-subdepartment-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: #f0f4f8;
  border-radius: 6px;
  color: #444;
  border-left: 4px solid #007bff;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.member-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.member-header {
  padding: 20px;
  text-align: center;
  position: relative;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.edit-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
}

.edit-icon:hover {
  background: #ffc107;
  color: white;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto 15px;
}

.member-name {
  font-size: 18px;
  margin: 0 0 5px;
  font-weight: 600;
  color: #333;
}

.member-title {
  color: #007bff;
  font-weight: 500;
  margin: 0 0 5px;
  font-size: 14px;
}

.member-info {
  padding: 15px 20px;
}

.member-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.member-detail i {
  width: 20px;
  margin-right: 10px;
  color: #6c757d;
  text-align: center;
}

.member-detail.email a {
  color: #007bff;
  text-decoration: none;
}

.member-detail.email a:hover {
  text-decoration: underline;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-blue {
  background: #e6f3ff;
  color: #007bff;
}

.badge-green {
  background: #e6fff0;
  color: #28a745;
}

.badge-purple {
  background: #f0e6ff;
  color: #6610f2;
}

/* Enhanced User Modal */
#userModal .modal-content,
#addUserModal .modal-content {
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
}

/* Email form styling - make email inputs match site style */
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* File upload styling */
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

/* Custom file input styling */
.custom-file-input {
    position: relative;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px;
    overflow: hidden;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-file-input:hover .custom-file-label {
    background-color: #f0f7ff;
    border-color: #007bff;
}

/* Enhanced modal styles for user management */
#addUserModal .modal-content,
#editUserModal .modal-content {
    max-width: 700px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#addUserModal h2,
#editUserModal h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Improved form layout for user modals */
.modal .team-form {
    margin-top: 0;
}

.modal .form-group {
    margin-bottom: 18px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.modal .team-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%;
    margin-top: 20px;
}

.modal .team-submit-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.modal .team-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Make select elements match input styling */
.modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.modal select:hover {
    border-color: #0056b3;
}

/* Improve email display in member cards */
.member-detail.email {
    word-break: break-word;
    margin-bottom: 6px;
}

.member-detail.email a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-detail.email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Better close button styling */
.modal .close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #555;
    transition: all 0.2s;
}

.modal .close-btn:hover {
    color: #dc3545;
    background-color: #ffeaea;
    transform: rotate(90deg);
}

/* Modal backdrop enhancement */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* ========================================= */
/*       Enhanced Home Page Styles          */
/* ========================================= */

/* 
   Not: Bu CSS'in Ã§akÄ±ÅŸmalarÄ± Ã¶nlemek iÃ§in home-specific 
   sÄ±nÄ±flarÄ±nÄ± kullanacaÄŸÄ±z
*/

/* General Home Sections Layout */
.home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.home-welcome-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-welcome-header h1 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  color: #343a40;
}

.home-welcome-header p {
  font-size: 1.1rem;
  color: #495057;
  margin: 0;
}

.home-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.home-section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #343a40;
}

.home-view-all-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.home-view-all-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
  color: white;
}

/* Project Cards */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.home-project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.home-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.home-project-brand {
  font-weight: 600;
  color: #495057;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.home-project-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background-color: #6c757d;
}

.home-status-normal {
  color: #28a745;
  font-weight: normal;
}

.home-status-warning {
  color: #ffc107;
  font-weight: 600;
}

.home-status-overdue {
  color: #dc3545;
  font-weight: 600;
}

.home-project-title {
  font-size: 18px;
  margin: 10px 0;
  color: #343a40;
  flex-grow: 1;
}

.home-project-details {
  margin-bottom: 15px;
}

.home-project-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}

.home-project-manager i, 
.home-project-deadline i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.home-overdue-text {
  color: #dc3545;
  font-weight: 600;
}

.home-project-view-btn {
  display: block;
  text-align: center;
  padding: 8px 16px;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
  border: 1px solid #dee2e6;
  margin-top: auto;
}

.home-project-view-btn:hover {
  background-color: #e9ecef;
  color: #343a40;
  text-decoration: none;
}

/* Expenses Table */
.home-expenses-table-container {
  overflow-x: auto;
}

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

.home-expenses-table th,
.home-expenses-table td {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
}

.home-expenses-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-align: left;
}

.home-expenses-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.home-expenses-table tr:hover {
  background-color: #f2f2f2;
}

.home-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.home-status-approved {
  background-color: #d4edda;
  color: #155724;
}

.home-status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.home-status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.home-details-btn {
  background-color: #5353ec;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.home-details-btn:hover {
  background-color: #4343d9;
}

/* Carousel/Slider Styles */
.home-carousel-container {
  position: relative;
  padding: 0 40px;
}

.home-carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.home-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.home-carousel-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
}

.home-carousel-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.home-carousel-prev-btn,
.home-carousel-next-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #dee2e6;
  color: #343a40;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.home-carousel-prev-btn:hover,
.home-carousel-next-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #007bff;
}

/* Team Items */
.home-team-item {
  width: 180px;
}

.home-team-avatar {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.home-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-team-name {
  margin: 10px 0 5px;
  font-size: 16px;
  font-weight: 600;
  color: #343a40;
}

.home-team-title {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* Brand Items */
.home-brand-item {
  width: 160px;
}

.home-brand-logo {
  margin: 0 auto;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-brand-name {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #343a40;
}

/* Announcements */
.home-announcements-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.home-announcement-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.home-announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.home-announcement-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #343a40;
}

.home-announcement-description {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 15px;
  line-height: 1.6;
}

.home-announcement-date {
  font-size: 12px;
  color: #adb5bd;
  text-align: right;
  margin: 0;
}

/* No Data Message */
.home-no-data-message {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .home-announcements-container {
    grid-template-columns: 1fr;
  }
  
  .home-carousel-item {
    width: 140px;
  }
  
  .home-team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .home-brand-logo {
    height: 60px;
    width: 60px;
  }
  
  .home-welcome-header h1 {
    font-size: 1.8rem;
  }
  
  .home-welcome-header p {
    font-size: 1rem;
  }
}

/* ========================================= */
/*           MesajlaÅŸma Widget Stilleri        */
/* ========================================= */

/* Ana MesajlaÅŸma Butonu (SaÄŸ Alt KÃ¶ÅŸede) */
.chat-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.chat-widget-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-widget-button img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-widget-button .chat-label {
  font-weight: 500;
  color: #333;
}

.chat-widget-button .chat-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #ff0000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  margin-left: 8px;
}

/* MesajlaÅŸma Paneli */
.chat-widget-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1001;
  width: 320px;
  max-height: 480px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: all 0.3s ease;
}

.chat-widget-panel.open {
  display: flex;
  animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel BaÅŸlÄ±ÄŸÄ± */
.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-widget-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-widget-header .chat-actions {
  display: flex;
  align-items: center;
}

.chat-widget-header .chat-action-btn {
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  color: #555;
}

.chat-widget-header .chat-action-btn:hover {
  color: #007bff;
}

.chat-widget-header .back-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a66c2;
  padding: 0;
  margin-right: 10px;
}

.chat-widget-header .back-btn i {
  margin-right: 4px;
  font-size: 16px;
}

/* Mesaj Arama */
.chat-search-container {
  padding: 8px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-search-input input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.chat-search-input input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.chat-search-input i {
  position: absolute;
  left: 12px;
  color: #777;
}

/* Mesaj Listesi */
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chat-messages-list li {
  padding: 0;
}

.chat-message-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-message-item:hover {
  background-color: #f7f9fa;
}

.chat-message-item.active {
  background-color: #eef3f9;
}

.chat-message-item.unread .chat-message-content h4::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0a66c2;
  margin-left: 8px;
}

/* Mesaj Sohbet AlanÄ± */
.chat-conversation {
  display: none;
  flex-direction: column;
  height: 100%;
  max-height: 480px;
}

.chat-conversation.active {
  display: flex;
}

.chat-conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f9f9f9;
  max-height: 350px; /* Maksimum yÃ¼kseklik sÄ±nÄ±rlamasÄ± */
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.message-bubble {
  max-width: 75%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  position: relative;
  word-wrap: break-word;
}

.message-bubble.sent {
  background-color: #e6f7ff;
  color: #333;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  background-color: #f0f2f5;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 10px;
  color: #777;
  margin-top: 4px;
  text-align: right;
}

.chat-user-info {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eaeaea;
  flex: 1;
}

.chat-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chat-user-name {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}

.chat-user-status {
  font-size: 12px;
  color: #65676b;
}

.chat-user-status.online {
  color: #31a24c;
}

.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eaeaea;
  background-color: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.chat-input-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  min-height: 20px;
  overflow-y: auto;
}

.chat-input-field:focus {
  outline: none;
  border-color: #0a66c2;
}

.chat-send-btn {
  background-color: #0a66c2;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-send-btn:disabled {
  background-color: #e4e6eb;
  cursor: not-allowed;
}

.chat-typing {
  font-size: 12px;
  font-style: italic;
  color: #65676b;
  padding: 0 15px 5px;
}

.chat-avatar {
  position: relative;
  margin-right: 12px;
}

.chat-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #0cca4a;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-message-content h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-preview {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-time {
  font-size: 12px;
  color: #777;
  align-self: flex-start;
  white-space: nowrap;
}

/* Yeni Mesaj OluÅŸturma Butonu */
.new-message-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.new-message-btn:hover {
  background-color: #0955a3;
  transform: scale(1.05);
}

.new-message-btn i {
  font-size: 20px;
}

/* Yeni Mesaj Modal */
.new-message-modal {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.new-message-modal.open {
  display: block;
  animation: slideUp 0.3s forwards;
}

.new-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.new-message-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.new-message-header .close-modal-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
}

.new-message-header .close-modal-btn:hover {
  color: #007bff;
}

.new-message-body {
  padding: 16px;
}

.new-message-form .form-group {
  margin-bottom: 16px;
}

.new-message-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.new-message-form select,
.new-message-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.new-message-form select:focus,
.new-message-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.new-message-form button {
  width: 100%;
  padding: 10px;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.new-message-form button:hover {
  background-color: #0955a3;
}

/* Mobil iÃ§in Uyumluluk */
@media (max-width: 576px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 40px);
    max-width: 400px;
  }
  
  .chat-widget-button {
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 20px);
    right: 10px;
  }
  
  .chat-widget-button {
    right: 10px;
  }
}

/* ========================= */
/*     Team Page Stats Styles    */
/* ========================= */

.team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.team-stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
}

.team-stat-box h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #495057;
}

.team-stat-box .count {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

.team-stat-total {
    background: #e9ecef;
    flex: 100%;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.team-stat-total h3 {
    margin: 0;
    font-size: 18px;
}

.team-stat-total .count {
    font-size: 28px;
    font-weight: 700;
    color: #0056b3;
}

/* Team Subdepartment Styles */
.team-subdepartment {
    margin-top: 20px;
    margin-bottom: 30px;
}

.team-subdepartment-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #f0f4f8;
    border-radius: 6px;
    color: #444;
    border-left: 4px solid #007bff;
}

/* Ana departman baÅŸlÄ±ÄŸÄ±nÄ± gizle */
.team-department-title {
    display: none;
}

/* ========================= */
/*     Team Page New Styles     */
/* ========================= */

/* Team Dashboard Container */
.team-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.team-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.team-dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.add-team-member-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.add-team-member-btn:hover {
  background-color: #0056b3;
}

/* Departments Section */
.departments-section {
  margin-bottom: 40px;
}

.departments-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.department-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.department-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.member-count {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.sub-departments {
  margin-top: 15px;
}

.sub-department {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sub-department .name {
  font-size: 14px;
  font-weight: 500;
}

.sub-department .count {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* Team Members Section */
.members-section {
  margin-bottom: 40px;
}

.members-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.team-department {
  margin-bottom: 30px;
}

.team-department-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  color: #333;
}

.team-subdepartment {
  margin-top: 20px;
  margin-bottom: 30px;
}

.team-subdepartment-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: #f0f4f8;
  border-radius: 6px;
  color: #444;
  border-left: 4px solid #007bff;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.member-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.member-header {
  padding: 20px;
  text-align: center;
  position: relative;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.edit-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
}

.edit-icon:hover {
  background: #ffc107;
  color: white;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto 15px;
}

.member-name {
  font-size: 18px;
  margin: 0 0 5px;
  font-weight: 600;
  color: #333;
}

.member-title {
  color: #007bff;
  font-weight: 500;
  margin: 0 0 5px;
  font-size: 14px;
}

.member-info {
  padding: 15px 20px;
}

.member-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.member-detail i {
  width: 20px;
  margin-right: 10px;
  color: #6c757d;
  text-align: center;
}

.member-detail.email a {
  color: #007bff;
  text-decoration: none;
}

.member-detail.email a:hover {
  text-decoration: underline;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-blue {
  background: #e6f3ff;
  color: #007bff;
}

.badge-green {
  background: #e6fff0;
  color: #28a745;
}

.badge-purple {
  background: #f0e6ff;
  color: #6610f2;
}

/* Enhanced User Modal */
#userModal .modal-content,
#addUserModal .modal-content {
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
}

/* Email form styling - make email inputs match site style */
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* File upload styling */
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

/* Custom file input styling */
.custom-file-input {
    position: relative;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px;
    overflow: hidden;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-file-input:hover .custom-file-label {
    background-color: #f0f7ff;
    border-color: #007bff;
}

/* Enhanced modal styles for user management */
#addUserModal .modal-content,
#editUserModal .modal-content {
    max-width: 700px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#addUserModal h2,
#editUserModal h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Improved form layout for user modals */
.modal .team-form {
    margin-top: 0;
}

.modal .form-group {
    margin-bottom: 18px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.modal .team-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%;
    margin-top: 20px;
}

.modal .team-submit-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.modal .team-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Make select elements match input styling */
.modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.modal select:hover {
    border-color: #0056b3;
}

/* Improve email display in member cards */
.member-detail.email {
    word-break: break-word;
    margin-bottom: 6px;
}

.member-detail.email a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-detail.email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Better close button styling */
.modal .close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #555;
    transition: all 0.2s;
}

.modal .close-btn:hover {
    color: #dc3545;
    background-color: #ffeaea;
    transform: rotate(90deg);
}

/* Modal backdrop enhancement */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* ========================================= */
/*       Enhanced Home Page Styles          */
/* ========================================= */

/* 
   Not: Bu CSS'in Ã§akÄ±ÅŸmalarÄ± Ã¶nlemek iÃ§in home-specific 
   sÄ±nÄ±flarÄ±nÄ± kullanacaÄŸÄ±z
*/

/* General Home Sections Layout */
.home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.home-welcome-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-welcome-header h1 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  color: #343a40;
}

.home-welcome-header p {
  font-size: 1.1rem;
  color: #495057;
  margin: 0;
}

.home-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.home-section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #343a40;
}

.home-view-all-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.home-view-all-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
  color: white;
}

/* Project Cards */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.home-project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.home-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.home-project-brand {
  font-weight: 600;
  color: #495057;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.home-project-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background-color: #6c757d;
}

.home-status-normal {
  color: #28a745;
  font-weight: normal;
}

.home-status-warning {
  color: #ffc107;
  font-weight: 600;
}

.home-status-overdue {
  color: #dc3545;
  font-weight: 600;
}

.home-project-title {
  font-size: 18px;
  margin: 10px 0;
  color: #343a40;
  flex-grow: 1;
}

.home-project-details {
  margin-bottom: 15px;
}

.home-project-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}

.home-project-manager i, 
.home-project-deadline i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.home-overdue-text {
  color: #dc3545;
  font-weight: 600;
}

.home-project-view-btn {
  display: block;
  text-align: center;
  padding: 8px 16px;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
  border: 1px solid #dee2e6;
  margin-top: auto;
}

.home-project-view-btn:hover {
  background-color: #e9ecef;
  color: #343a40;
  text-decoration: none;
}

/* Expenses Table */
.home-expenses-table-container {
  overflow-x: auto;
}

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

.home-expenses-table th,
.home-expenses-table td {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
}

.home-expenses-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-align: left;
}

.home-expenses-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.home-expenses-table tr:hover {
  background-color: #f2f2f2;
}

.home-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.home-status-approved {
  background-color: #d4edda;
  color: #155724;
}

.home-status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.home-status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.home-details-btn {
  background-color: #5353ec;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.home-details-btn:hover {
  background-color: #4343d9;
}

/* Carousel/Slider Styles */
.home-carousel-container {
  position: relative;
  padding: 0 40px;
}

.home-carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.home-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.home-carousel-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
}

.home-carousel-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.home-carousel-prev-btn,
.home-carousel-next-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #dee2e6;
  color: #343a40;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.home-carousel-prev-btn:hover,
.home-carousel-next-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #007bff;
}

/* Team Items */
.home-team-item {
  width: 180px;
}

.home-team-avatar {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.home-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-team-name {
  margin: 10px 0 5px;
  font-size: 16px;
  font-weight: 600;
  color: #343a40;
}

.home-team-title {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* Brand Items */
.home-brand-item {
  width: 160px;
}

.home-brand-logo {
  margin: 0 auto;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-brand-name {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #343a40;
}

/* Announcements */
.home-announcements-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.home-announcement-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.home-announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.home-announcement-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #343a40;
}

.home-announcement-description {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 15px;
  line-height: 1.6;
}

.home-announcement-date {
  font-size: 12px;
  color: #adb5bd;
  text-align: right;
  margin: 0;
}

/* No Data Message */
.home-no-data-message {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .home-announcements-container {
    grid-template-columns: 1fr;
  }
  
  .home-carousel-item {
    width: 140px;
  }
  
  .home-team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .home-brand-logo {
    height: 60px;
    width: 60px;
  }
  
  .home-welcome-header h1 {
    font-size: 1.8rem;
  }
  
  .home-welcome-header p {
    font-size: 1rem;
  }
}

/* ========================================= */
/*           MesajlaÅŸma Widget Stilleri        */
/* ========================================= */

/* Ana MesajlaÅŸma Butonu (SaÄŸ Alt KÃ¶ÅŸede) */
.chat-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.chat-widget-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-widget-button img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-widget-button .chat-label {
  font-weight: 500;
  color: #333;
}

.chat-widget-button .chat-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #ff0000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  margin-left: 8px;
}

/* MesajlaÅŸma Paneli */
.chat-widget-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1001;
  width: 320px;
  max-height: 480px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: all 0.3s ease;
}

.chat-widget-panel.open {
  display: flex;
  animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel BaÅŸlÄ±ÄŸÄ± */
.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-widget-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-widget-header .chat-actions {
  display: flex;
  align-items: center;
}

.chat-widget-header .chat-action-btn {
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  color: #555;
}

.chat-widget-header .chat-action-btn:hover {
  color: #007bff;
}

.chat-widget-header .back-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a66c2;
  padding: 0;
  margin-right: 10px;
}

.chat-widget-header .back-btn i {
  margin-right: 4px;
  font-size: 16px;
}

/* Mesaj Arama */
.chat-search-container {
  padding: 8px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-search-input input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.chat-search-input input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.chat-search-input i {
  position: absolute;
  left: 12px;
  color: #777;
}

/* Mesaj Listesi */
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chat-messages-list li {
  padding: 0;
}

.chat-message-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-message-item:hover {
  background-color: #f7f9fa;
}

.chat-message-item.active {
  background-color: #eef3f9;
}

.chat-message-item.unread .chat-message-content h4::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0a66c2;
  margin-left: 8px;
}

/* Mesaj Sohbet AlanÄ± */
.chat-conversation {
  display: none;
  flex-direction: column;
  height: 100%;
  max-height: 480px;
}

.chat-conversation.active {
  display: flex;
}

.chat-conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f9f9f9;
  max-height: 350px; /* Maksimum yÃ¼kseklik sÄ±nÄ±rlamasÄ± */
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.message-bubble {
  max-width: 75%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  position: relative;
  word-wrap: break-word;
}

.message-bubble.sent {
  background-color: #e6f7ff;
  color: #333;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  background-color: #f0f2f5;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 10px;
  color: #777;
  margin-top: 4px;
  text-align: right;
}

.chat-user-info {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eaeaea;
  flex: 1;
}

.chat-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chat-user-name {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}

.chat-user-status {
  font-size: 12px;
  color: #65676b;
}

.chat-user-status.online {
  color: #31a24c;
}

.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eaeaea;
  background-color: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.chat-input-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  min-height: 20px;
  overflow-y: auto;
}

.chat-input-field:focus {
  outline: none;
  border-color: #0a66c2;
}

.chat-send-btn {
  background-color: #0a66c2;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-send-btn:disabled {
  background-color: #e4e6eb;
  cursor: not-allowed;
}

.chat-typing {
  font-size: 12px;
  font-style: italic;
  color: #65676b;
  padding: 0 15px 5px;
}

.chat-avatar {
  position: relative;
  margin-right: 12px;
}

.chat-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #0cca4a;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-message-content h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-preview {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-time {
  font-size: 12px;
  color: #777;
  align-self: flex-start;
  white-space: nowrap;
}

/* Yeni Mesaj OluÅŸturma Butonu */
.new-message-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.new-message-btn:hover {
  background-color: #0955a3;
  transform: scale(1.05);
}

.new-message-btn i {
  font-size: 20px;
}

/* Yeni Mesaj Modal */
.new-message-modal {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.new-message-modal.open {
  display: block;
  animation: slideUp 0.3s forwards;
}

.new-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.new-message-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.new-message-header .close-modal-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
}

.new-message-header .close-modal-btn:hover {
  color: #007bff;
}

.new-message-body {
  padding: 16px;
}

.new-message-form .form-group {
  margin-bottom: 16px;
}

.new-message-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.new-message-form select,
.new-message-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.new-message-form select:focus,
.new-message-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.new-message-form button {
  width: 100%;
  padding: 10px;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.new-message-form button:hover {
  background-color: #0955a3;
}

/* Mobil iÃ§in Uyumluluk */
@media (max-width: 576px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 40px);
    max-width: 400px;
  }
  
  .chat-widget-button {
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 20px);
    right: 10px;
  }
  
  .chat-widget-button {
    right: 10px;
  }
}

/* ========================= */
/*     Team Page Stats Styles    */
/* ========================= */

.team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.team-stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
}

.team-stat-box h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #495057;
}

.team-stat-box .count {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

.team-stat-total {
    background: #e9ecef;
    flex: 100%;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.team-stat-total h3 {
    margin: 0;
    font-size: 18px;
}

.team-stat-total .count {
    font-size: 28px;
    font-weight: 700;
    color: #0056b3;
}

/* Team Subdepartment Styles */
.team-subdepartment {
    margin-top: 20px;
    margin-bottom: 30px;
}

.team-subdepartment-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #f0f4f8;
    border-radius: 6px;
    color: #444;
    border-left: 4px solid #007bff;
}

/* Ana departman baÅŸlÄ±ÄŸÄ±nÄ± gizle */
.team-department-title {
    display: none;
}

/* ========================= */
/*     Team Page New Styles     */
/* ========================= */

/* Team Dashboard Container */
.team-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.team-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.team-dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.add-team-member-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.add-team-member-btn:hover {
  background-color: #0056b3;
}

/* Departments Section */
.departments-section {
  margin-bottom: 40px;
}

.departments-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.department-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.department-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.member-count {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.sub-departments {
  margin-top: 15px;
}

.sub-department {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sub-department .name {
  font-size: 14px;
  font-weight: 500;
}

.sub-department .count {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* Team Members Section */
.members-section {
  margin-bottom: 40px;
}

.members-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.team-department {
  margin-bottom: 30px;
}

.team-department-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  color: #333;
}

.team-subdepartment {
  margin-top: 20px;
  margin-bottom: 30px;
}

.team-subdepartment-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: #f0f4f8;
  border-radius: 6px;
  color: #444;
  border-left: 4px solid #007bff;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.member-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.member-header {
  padding: 20px;
  text-align: center;
  position: relative;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.edit-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
}

.edit-icon:hover {
  background: #ffc107;
  color: white;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto 15px;
}

.member-name {
  font-size: 18px;
  margin: 0 0 5px;
  font-weight: 600;
  color: #333;
}

.member-title {
  color: #007bff;
  font-weight: 500;
  margin: 0 0 5px;
  font-size: 14px;
}

.member-info {
  padding: 15px 20px;
}

.member-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.member-detail i {
  width: 20px;
  margin-right: 10px;
  color: #6c757d;
  text-align: center;
}

.member-detail.email a {
  color: #007bff;
  text-decoration: none;
}

.member-detail.email a:hover {
  text-decoration: underline;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-blue {
  background: #e6f3ff;
  color: #007bff;
}

.badge-green {
  background: #e6fff0;
  color: #28a745;
}

.badge-purple {
  background: #f0e6ff;
  color: #6610f2;
}

/* Enhanced User Modal */
#userModal .modal-content,
#addUserModal .modal-content {
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
}

/* Email form styling - make email inputs match site style */
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* File upload styling */
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

/* Custom file input styling */
.custom-file-input {
    position: relative;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px;
    overflow: hidden;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-file-input:hover .custom-file-label {
    background-color: #f0f7ff;
    border-color: #007bff;
}

/* Enhanced modal styles for user management */
#addUserModal .modal-content,
#editUserModal .modal-content {
    max-width: 700px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#addUserModal h2,
#editUserModal h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Improved form layout for user modals */
.modal .team-form {
    margin-top: 0;
}

.modal .form-group {
    margin-bottom: 18px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.modal .team-submit-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%;
    margin-top: 20px;
}

.modal .team-submit-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.modal .team-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Make select elements match input styling */
.modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.modal select:hover {
    border-color: #0056b3;
}

/* Improve email display in member cards */
.member-detail.email {
    word-break: break-word;
    margin-bottom: 6px;
}

.member-detail.email a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-detail.email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Better close button styling */
.modal .close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #555;
    transition: all 0.2s;
}

.modal .close-btn:hover {
    color: #dc3545;
    background-color: #ffeaea;
    transform: rotate(90deg);
}

/* Modal backdrop enhancement */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* ========================================= */
/*       Enhanced Home Page Styles          */
/* ========================================= */

/* 
   Not: Bu CSS'in Ã§akÄ±ÅŸmalarÄ± Ã¶nlemek iÃ§in home-specific 
   sÄ±nÄ±flarÄ±nÄ± kullanacaÄŸÄ±z
*/

/* General Home Sections Layout */
.home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.home-welcome-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.home-welcome-header h1 {
  margin: 0 0 10px 0;
  font-size: 2.2rem;
  color: #343a40;
}

.home-welcome-header p {
  font-size: 1.1rem;
  color: #495057;
  margin: 0;
}

.home-section {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.home-section-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #343a40;
}

.home-view-all-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.home-view-all-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
  color: white;
}

/* Project Cards */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.home-project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.home-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.home-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.home-project-brand {
  font-weight: 600;
  color: #495057;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.home-project-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background-color: #6c757d;
}

.home-status-normal {
  color: #28a745;
  font-weight: normal;
}

.home-status-warning {
  color: #ffc107;
  font-weight: 600;
}

.home-status-overdue {
  color: #dc3545;
  font-weight: 600;
}

.home-project-title {
  font-size: 18px;
  margin: 10px 0;
  color: #343a40;
  flex-grow: 1;
}

.home-project-details {
  margin-bottom: 15px;
}

.home-project-details p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}

.home-project-manager i, 
.home-project-deadline i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.home-overdue-text {
  color: #dc3545;
  font-weight: 600;
}

.home-project-view-btn {
  display: block;
  text-align: center;
  padding: 8px 16px;
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
  border: 1px solid #dee2e6;
  margin-top: auto;
}

.home-project-view-btn:hover {
  background-color: #e9ecef;
  color: #343a40;
  text-decoration: none;
}

/* Expenses Table */
.home-expenses-table-container {
  overflow-x: auto;
}

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

.home-expenses-table th,
.home-expenses-table td {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
}

.home-expenses-table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
  text-align: left;
}

.home-expenses-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.home-expenses-table tr:hover {
  background-color: #f2f2f2;
}

.home-status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.home-status-approved {
  background-color: #d4edda;
  color: #155724;
}

.home-status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.home-status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.home-details-btn {
  background-color: #5353ec;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.home-details-btn:hover {
  background-color: #4343d9;
}

/* Carousel/Slider Styles */
.home-carousel-container {
  position: relative;
  padding: 0 40px;
}

.home-carousel-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.home-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.home-carousel-item {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
}

.home-carousel-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.home-carousel-prev-btn,
.home-carousel-next-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #dee2e6;
  color: #343a40;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.home-carousel-prev-btn:hover,
.home-carousel-next-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #007bff;
}

/* Team Items */
.home-team-item {
  width: 180px;
}

.home-team-avatar {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.home-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-team-name {
  margin: 10px 0 5px;
  font-size: 16px;
  font-weight: 600;
  color: #343a40;
}

.home-team-title {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* Brand Items */
.home-brand-item {
  width: 160px;
}

.home-brand-logo {
  margin: 0 auto;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-brand-name {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #343a40;
}

/* Announcements */
.home-announcements-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.home-announcement-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.home-announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.home-announcement-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: #343a40;
}

.home-announcement-description {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 15px;
  line-height: 1.6;
}

.home-announcement-date {
  font-size: 12px;
  color: #adb5bd;
  text-align: right;
  margin: 0;
}

/* No Data Message */
.home-no-data-message {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .home-announcements-container {
    grid-template-columns: 1fr;
  }
  
  .home-carousel-item {
    width: 140px;
  }
  
  .home-team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .home-brand-logo {
    height: 60px;
    width: 60px;
  }
  
  .home-welcome-header h1 {
    font-size: 1.8rem;
  }
  
  .home-welcome-header p {
    font-size: 1rem;
  }
}

/* ========================================= */
/*           MesajlaÅŸma Widget Stilleri        */
/* ========================================= */

/* Ana MesajlaÅŸma Butonu (SaÄŸ Alt KÃ¶ÅŸede) */
.chat-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.chat-widget-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-widget-button img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-widget-button .chat-label {
  font-weight: 500;
  color: #333;
}

.chat-widget-button .chat-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #ff0000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  margin-left: 8px;
}

/* MesajlaÅŸma Paneli */
.chat-widget-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1001;
  width: 320px;
  max-height: 480px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transition: all 0.3s ease;
}

.chat-widget-panel.open {
  display: flex;
  animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel BaÅŸlÄ±ÄŸÄ± */
.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-widget-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-widget-header .chat-actions {
  display: flex;
  align-items: center;
}

.chat-widget-header .chat-action-btn {
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  color: #555;
}

.chat-widget-header .chat-action-btn:hover {
  color: #007bff;
}

.chat-widget-header .back-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a66c2;
  padding: 0;
  margin-right: 10px;
}

.chat-widget-header .back-btn i {
  margin-right: 4px;
  font-size: 16px;
}

/* Mesaj Arama */
.chat-search-container {
  padding: 8px 16px;
  border-bottom: 1px solid #eaeaea;
}

.chat-search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-search-input input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.chat-search-input input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.chat-search-input i {
  position: absolute;
  left: 12px;
  color: #777;
}

/* Mesaj Listesi */
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chat-messages-list li {
  padding: 0;
}

.chat-message-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-message-item:hover {
  background-color: #f7f9fa;
}

.chat-message-item.active {
  background-color: #eef3f9;
}

.chat-message-item.unread .chat-message-content h4::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0a66c2;
  margin-left: 8px;
}

/* Mesaj Sohbet AlanÄ± */
.chat-conversation {
  display: none;
  flex-direction: column;
  height: 100%;
  max-height: 480px;
}

.chat-conversation.active {
  display: flex;
}

.chat-conversation-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #f9f9f9;
  max-height: 350px; /* Maksimum yÃ¼kseklik sÄ±nÄ±rlamasÄ± */
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.message-bubble {
  max-width: 75%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  position: relative;
  word-wrap: break-word;
}

.message-bubble.sent {
  background-color: #e6f7ff;
  color: #333;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-bubble.received {
  background-color: #f0f2f5;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 10px;
  color: #777;
  margin-top: 4px;
  text-align: right;
}

.chat-user-info {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eaeaea;
  flex: 1;
}

.chat-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chat-user-name {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
}

.chat-user-status {
  font-size: 12px;
  color: #65676b;
}

.chat-user-status.online {
  color: #31a24c;
}

.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #eaeaea;
  background-color: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.chat-input-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  min-height: 20px;
  overflow-y: auto;
}

.chat-input-field:focus {
  outline: none;
  border-color: #0a66c2;
}

.chat-send-btn {
  background-color: #0a66c2;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-send-btn:disabled {
  background-color: #e4e6eb;
  cursor: not-allowed;
}

.chat-typing {
  font-size: 12px;
  font-style: italic;
  color: #65676b;
  padding: 0 15px 5px;
}

.chat-avatar {
  position: relative;
  margin-right: 12px;
}

.chat-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #0cca4a;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chat-message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-message-content h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-preview {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-message-time {
  font-size: 12px;
  color: #777;
  align-self: flex-start;
  white-space: nowrap;
}

/* Yeni Mesaj OluÅŸturma Butonu */
.new-message-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.new-message-btn:hover {
  background-color: #0955a3;
  transform: scale(1.05);
}

.new-message-btn i {
  font-size: 20px;
}

/* Yeni Mesaj Modal */
.new-message-modal {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.new-message-modal.open {
  display: block;
  animation: slideUp 0.3s forwards;
}

.new-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.new-message-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.new-message-header .close-modal-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #555;
  cursor: pointer;
}

.new-message-header .close-modal-btn:hover {
  color: #007bff;
}

.new-message-body {
  padding: 16px;
}

.new-message-form .form-group {
  margin-bottom: 16px;
}

.new-message-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.new-message-form select,
.new-message-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.new-message-form select:focus,
.new-message-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.new-message-form button {
  width: 100%;
  padding: 10px;
  background-color: #0a66c2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.new-message-form button:hover {
  background-color: #0955a3;
}

/* Mobil iÃ§in Uyumluluk */
@media (max-width: 576px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 40px);
    max-width: 400px;
  }
  
  .chat-widget-button {
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .chat-widget-panel,
  .new-message-modal {
    width: calc(100% - 20px);
    right: 10px;
  }
  
  .chat-widget-button {
    right: 10px;
  }
}

/* ========================= */
/*     Team Page Stats Styles    */
/* ========================= */

.team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.team-stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
}

.team-stat-box h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #495057;
}

.team-stat-box .count {
    font-size: 24px;
    font-weight: 600;
    color: #007bff;
}

.team-stat-total {
    background: #e9ecef;
    flex: 100%;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.team-stat-total h3 {
    margin: 0;
    font-size: 18px;
}

.team-stat-total .count {
    font-size: 28px;
    font-weight: 700;
    color: #0056b3;
}

/* Team Subdepartment Styles */
.team-subdepartment {
    margin-top: 20px;
    margin-bottom: 30px;
}

.team-subdepartment-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #f0f4f8;
    border-radius: 6px;
    color: #444;
    border-left: 4px solid #007bff;
}

/* Ana departman baÅŸlÄ±ÄŸÄ±nÄ± gizle */
.team-department-title {
    display: none;
}

/* ========================= */
/*     Team Page New Styles     */
/* ========================= */

/* Team Dashboard Container */
.team-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.team-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.team-dashboard-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.add-team-member-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.add-team-member-btn:hover {
  background-color: #0056b3;
}

/* Departments Section */
.departments-section {
  margin-bottom: 40px;
}

.departments-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.department-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.department-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.member-count {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.sub-departments {
  margin-top: 15px;
}

.sub-department {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sub-department .name {
  font-size: 14px;
  font-weight: 500;
}

.sub-department .count {
  background: #6c757d;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* Team Members Section */
.members-section {
  margin-bottom: 40px;
}

.members-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.team-department {
  margin-bottom: 30px;
}

.team-department-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 6px;
  color: #333;
}

.team-subdepartment {
  margin-top: 20px;
  margin-bottom: 30px;
}

.team-subdepartment-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding: 8px 15px;
  background: #f0f4f8;
  border-radius: 6px;
  color: #444;
  border-left: 4px solid #007bff;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.member-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.member-header {
  padding: 20px;
  text-align: center;
  position: relative;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.edit-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
}

.edit-icon:hover {
  background: #ffc107;
  color: white;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto 15px;
}

.member-name {
  font-size: 18px;
  margin: 0 0 5px;
  font-weight: 600;
  color: #333;
}

.member-title {
  color: #007bff;
  font-weight: 500;
  margin: 0 0 5px;
  font-size: 14px;
}

.member-info {
  padding: 15px 20px;
}

.member-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.member-detail i {
  width: 20px;
  margin-right: 10px;
  color: #6c757d;
  text-align: center;
}

.member-detail.email a {
  color: #007bff;
  text-decoration: none;
}

.member-detail.email a:hover {
  text-decoration: underline;
}

.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-blue {
  background: #e6f3ff;
  color: #007bff;
}

.badge-green {
  background: #e6fff0;
  color: #28a745;
}

.badge-purple {
  background: #f0e6ff;
  color: #6610f2;
}

/* Enhanced User Modal */
#userModal .modal-content,
#addUserModal .modal-content {
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-column {
  flex: 1;
  min-width: 0;
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
}

/* Email form styling - make email inputs match site style */
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* File upload styling */
.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

/* Custom file input styling */
.custom-file-input {
    position: relative;
    cursor: pointer;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px;
    overflow: hidden;
    color: #555;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-file-input:hover .custom-file-label {
    background-color: #f0f7ff;
    border-color: #007bff;
}

/* Enhanced modal styles for user management */
#addUserModal .modal-content,
#editUserModal .modal-content {
    max-width: 700px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#addUserModal h2,
#editUserModal h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Improved form layout for user modals */
.modal .team-form {
    margin-top: 0;
}

.modal .form-group {
    margin-bottom: 18px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* ========================================= */
/*            Markalar SayfasÄ± Stilleri      */
/* ========================================= */

/* Markalar Ana KapsayÄ±cÄ± */
.brands-container {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 20px;
}

.brands-container h1 {
  margin-bottom: 25px;
  font-size: 2.2rem;
  text-align: center;
  color: #333;
  font-weight: 500;
}

/* Ä°statistik AlanÄ± */
.brands-stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.stats-card {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

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

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f0f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.stats-icon i {
  font-size: 24px;
  color: #4c8dff;
}

.stats-content {
  flex: 1;
}

.stats-content h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
  font-weight: 500;
}

.stats-value {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Filtreleme AlanÄ± */
.brands-filter-container {
  margin-bottom: 30px;
}

.filter-form {
  width: 100%;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #f8f9fa;
  color: #555;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.filter-btn i {
  margin-right: 8px;
  font-size: 14px;
}

.filter-btn:hover {
  background-color: #e9ecef;
  color: #333;
}

.filter-btn.active {
  background-color: #4c8dff;
  color: white;
  border-color: #4c8dff;
}

/* Marka Tablosu */
.brands-table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.brands-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fff;
}

.brands-table th,
.brands-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.brands-table th {
  background-color: #f8f9fa;
  font-weight: 500;
  color: #666;
  position: sticky;
  top: 0;
}

.brands-table tr:last-child td {
  border-bottom: none;
}

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

.brand-row {
  cursor: pointer;
  transition: all 0.2s;
}

.brand-logo-col {
  width: 70px;
  text-align: center;
}

.brand-table-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 5px;
}

.contract-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.sozlesme-var {
  background-color: #e3f9e5;
  color: #276749;
}

.sozlesme-yok {
  background-color: #fed7d7;
  color: #c53030;
}

.sozlesme-yakinda-sona-erecek {
  background-color: #feebc8;
  color: #c05621;
}

.sozlesme-suresi-doldu {
  background-color: #e2e8f0;
  color: #4a5568;
}

.days-left {
  display: inline-block;
  font-weight: 500;
  color: #2b6cb0;
}

.days-left.nearing-expiration {
  color: #c05621;
}

.days-expired {
  color: #c53030;
  font-weight: 500;
}

.no-contract {
  color: #718096;
}

.project-count {
  font-weight: 500;
  color: #2b6cb0;
}

.brand-actions-col {
  width: 150px;
  text-align: right;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: #f8f9fa;
  color: #4a5568;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  background-color: #e2e8f0;
}

.btn-action i {
  font-size: 15px;
}

.edit-btn:hover {
  background-color: #ebf8ff;
  color: #3182ce;
}

.add-contract-btn:hover {
  background-color: #e3f9e5;
  color: #276749;
}

.renew-btn:hover {
  background-color: #feebc8;
  color: #c05621;
}

.end-btn:hover {
  background-color: #fed7d7;
  color: #c53030;
}

/* Marka Detay ModalÄ± */
.brand-detail-modal {
  max-width: 800px;
  width: 90%;
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
}

.brand-detail-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.brand-detail-logo {
  margin-right: 20px;
}

.brand-detail-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-detail-title h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
}

.brand-detail-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.brand-detail-section {
  margin-bottom: 25px;
}

.brand-detail-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 10px;
}

.brand-detail-section h3 i {
  margin-right: 10px;
  color: #4c8dff;
}

.brand-detail-row {
  display: flex;
  margin-bottom: 12px;
}

.brand-detail-label {
  width: 180px;
  font-weight: 500;
  color: #666;
}

.brand-detail-value {
  flex: 1;
  color: #333;
}

.brand-detail-value a {
  color: #4c8dff;
  text-decoration: none;
}

.brand-detail-value a:hover {
  text-decoration: underline;
}

.brand-detail-manager {
  display: flex;
  align-items: center;
}

.manager-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.manager-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.brand-detail-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.project-stat {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.project-stat-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.project-stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.brand-detail-service {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  white-space: pre-line;
  color: #333;
  line-height: 1.6;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

.loading-spinner i {
  font-size: 40px;
  color: #4c8dff;
  margin-bottom: 15px;
}

.error-message {
  background-color: #fed7d7;
  color: #c53030;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 20px;
}

/* Responsive TasarÄ±m */
@media (max-width: 992px) {
  .brands-table th,
  .brands-table td {
    padding: 12px 10px;
  }
  
  .brand-detail-projects {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .stats-card {
    min-width: 100%;
  }
  
  .brand-actions-col {
    width: 120px;
  }
  
  .brand-detail-row {
    flex-direction: column;
  }
  
  .brand-detail-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .brand-detail-projects {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .brands-table {
    font-size: 14px;
  }
  
  .brand-logo-col {
    width: 50px;
  }
  
  .brand-table-logo {
    width: 40px;
    height: 40px;
  }
  
  .contract-status-badge {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .brand-actions-col {
    width: 80px;
  }
  
  .btn-action {
    width: 32px;
    height: 32px;
    margin-left: 2px;
  }
  
  .brand-detail-logo img {
    width: 60px;
    height: 60px;
  }
  
  .brand-detail-title h2 {
    font-size: 20px;
  }
  
  .brand-detail-projects {
    grid-template-columns: 1fr;
  }
}