@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap");
:root {
  --accent-color: #5f6d94;
  --base-color: white;
  --text-color: #2e2b41;
  --input-color: #e9f0ff;
  --error-color: #ff5a5f;
}
* {
  margin: 0;
  padding: 0;
}
html {
  font-family: Poppins, Segoe UI, sans-serif;
  font-size: 12pt;
  color: var(--text-color);
  text-align: center;
}
body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: 
  #f1f1f1ee;
  background-size: cover;
  background-position: right;
  overflow-y: auto;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.wrapper {
  position: relative;
  width: 90%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
  z-index: 2;
  max-height: none;
}

h1 {
  font-size: 2.3rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-color);
}
#error-message {
  color: var(--error-color);
}
form {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
form > div {
  width: 100%;
  display: flex;
  justify-content: center;
}
form label {
  flex-shrink: 0;
  height: 50px;
  width: 50px;
  background-color: var(--accent-color);
  fill: var(--base-color);
  color: var(--base-color);
  border-radius: 10px 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 500;
}
form input {
  box-sizing: border-box;
  flex-grow: 1;
  min-width: 0;
  height: 50px;
  padding: 1em;
  font: inherit;
  border-radius: 0 10px 10px 0;
  border: 2px solid var(--input-color);
  border-left: none;
  background-color: var(--input-color);
  transition: 150ms ease;
}
form input:hover {
  border-color: var(--accent-color);
}
form input:focus {
  outline: none;
  border-color: var(--text-color);
}
div:has(input:focus) > label {
  background-color: var(--text-color);
}
form input::placeholder {
  color: var(--text-color);
}
form button {
  margin-top: 10px;
  border: none;
  border-radius: 1000px;
  padding: 0.85em 4em;
  background-color: var(--accent-color);
  color: var(--base-color);
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: 150ms ease;
}
form button:hover {
  background-color: var(--text-color);
}
form button:focus {
  outline: none;
  background-color: var(--text-color);
}
a {
  text-decoration: none;
  color: var(--accent-color);
}
a:hover {
  text-decoration: underline;
}
form div.incorrect label {
  background-color: var(--error-color);
}
form div.incorrect input {
  border-color: var(--error-color);
}
@media (max-width: 1100px) {
  .wrapper {
    width: min(600px, 100%);
    border-radius: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
  height: auto;
}

.button-container {
  display: flex;
  gap: 3px;
}

#btn-en,
#btn-tr {
  padding: 15px 5px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: rgb(17, 17, 17);
  display: flex;
  align-items: center;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: left 10px center;
  padding-left: 45px;
}

/* İngilizce butonu (ABD bayrağı) */
#btn-en {
  background-color: #e0e0e000;
  background-image: url("../images/united-states-flag-icon.svg");
}

/* Türkçe butonu (Türkiye bayrağı) */
#btn-tr {
  background-color: #e6000000;
  background-image: url("../images/turkey-flag-icon.svg");
}
#btn-en:hover,
#btn-tr:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#btn-en:active,
#btn-tr:active {
  transform: scale(0.95);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

@media (max-height: 700px) {
  body {
    align-items: flex-start;
    padding-top: 20px;
  }
  .wrapper {
    margin-top: 0;
    padding: 20px;
  }
}

/* Translations sayfası için modern stil */
.translations-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 0;
    font-weight: 600;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 109, 148, 0.1);
    outline: none;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.translations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.translation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

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

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.translation-key {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
}

.edit-all-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-all-btn i {
    font-size: 0.8rem;
}

.edit-all-btn:hover {
    background: var(--accent-color);
    color: white;
}

.translations-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.translation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.translation-item:hover {
    background: #f1f3f5;
}

.translation-value {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

.language-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    text-transform: uppercase;
}

/* Dil rozetleri için özel stiller */
.language-badge[data-lang="en"] {
    background: #e3f2fd;
    color: #1976d2;
}

.language-badge[data-lang="tr"] {
    background: #fce4ec;
    color: #c2185b;
}

.language-badge[data-lang="de"] {
    background: #f3e5f5;
    color: #7b1fa2;
}

.edit-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

/* Modal Stilleri */
.modern-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modern-modal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.modern-modal .modal-title {
    color: var(--accent-color);
    font-weight: 600;
}

.modern-modal .modal-body {
    padding: 1.5rem;
}

.modern-modal .form-group {
    margin-bottom: 1.2rem;
}

.modern-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
}

.modern-modal .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modern-modal .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(95, 109, 148, 0.1);
    outline: none;
}

.modern-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-save, .btn-cancel {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-save:hover {
    background: #4a5674;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: none;
    margin-right: 0.8rem;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Alert Stilleri */
.alert-success, .alert-error {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .translations-container {
        padding: 1rem;
        margin: 1rem;
        border-radius: 10px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .translations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .translation-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .translation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .translation-value {
        width: 100%;
    }
    
    .edit-btn {
        align-self: flex-end;
    }
}
