@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

h4 {
    font-size: 12px;
    color: #777;
    font-weight: 400;
    text-align: center;
    line-height: 1.5rem;
}

#google_translate_element {
    display: none;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    margin-left: 50px;
}

.welcome-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

#search-input {
    width: 50%;
    padding: 12px;
    padding-left: 15px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#search-input:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

#auth-email {
    width: 85%;
    padding: 12px;
    padding-left: 15px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-left: 8px;
    margin-bottom: 0.8rem;
}

#auth-email:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

#auth-password {
    width: 85%;
    padding: 12px;
    padding-left: 15px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-left: 8px;
}

#auth-password:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.tos-info {
    text-align: center;
    font-size: 0.8rem;
    text-decoration: none;
    line-height: 1.2rem;
}

.section {
    margin-bottom: 40px;
}

a {
    text-decoration: none;
}

h2 {
    font-size: 24px;
    text-align: left;
    margin-left: 8px;
}

.item-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.color-export-preview {
    border: 1px solid #ccc;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    margin-bottom: -4.5px;
}

.color-export-name-hex {
    font-weight: bold;
    margin-left: 6px;
}

#color-selection-container {
    margin-left: 8px;
}

.item {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: 8px;
    color: #888;
    border-radius: 12px;
    padding: 10px;
    width: 150px;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.2s ease-in-out;
    word-wrap: break-word;
    cursor: pointer;
    margin-bottom: 8px;
}

.item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #007bff;
}

.item .plus {
    font-size: 20px;
    color: #888;
}

.item .plus:hover {
    color: #007bff;
}

.color-code {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.rounding-name {
    font-size: 1.2rem;
}

.color-value {
    margin-bottom: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
}

#image-info {
    font-size: 13px;
    margin-left: 8px;
    margin-top: 0px;
    font-weight: normal;
    color: #777;
}

#input-info {
    font-size: 13px;
    margin-left: 8px;
    margin-top: 8px;
    font-weight: normal;
    color: #777;
}

.add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    min-height: 35px;
    margin-left: 8px;
}

input[type="color"] {
    width: 110px;
    height: 44px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #c0c0c0;
    background-color: #ffffff;
    cursor: pointer;
    position: relative; /* Relative Positionierung aktivieren */
    top: 6px; /* Verschiebt das Element nach unten */
}

input#rounding {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 6px;
    max-width: 60px;
}

input#rounding:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    padding: 10px 20px;
    outline: none;
}

label {
    margin-left: 8px;
}

textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 89.5%;
    height: 175px;
    margin: 15px;
    margin-left: 6px;
    resize: none;
}

textarea:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.color-preview {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.note-text {
    white-space: pre-wrap;
    word-break: break-word;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #666666;
    text-align: left;
    margin-bottom: 1rem;
}

#login-btn,
#register-btn,
#close-login-btn,
button {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    margin-right: 8px;
}

#login-btn:hover,
#register-btn:hover,
#close-login-btn:hover,
.button:hover {
    background-color: #eaeaea;
}

.color-picker-container,
.rounding-picker-container,
.note-input-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    z-index: 1000;
}

.color-picker-container.active,
.rounding-picker-container.active,
.note-input-container.active {
    display: block;
}

.font-name-input, .color-name-input, .note-text-input {
    margin-bottom: 10px;
    width: calc(100% - 22px);
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.delete-icon {
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 16px;
    color: #e6352b;
    cursor: pointer;
    background: transparent;
    border: none;
}

.delete-icon:hover {
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 16px;
    color: #9e231c;
    cursor: pointer;
    background: transparent;
    border: none;
}

.rounding-value {
    font-size: 14px;
    color: #555;
    margin: 6px;
}

.ios-button {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
}

.ios-button:hover {
    background-color: #eaeaea;
}

.ios-button:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    padding: 10px 20px;
    outline: none;
}

.no-colors-message {
    font-size: 16px;
    margin-left: 8px;
    margin-bottom: 35px;
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    width: 300px;
    padding: 16px;
    z-index: 1000;
    background: #fff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 999;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#export-colors-popup .popup-content {
    overflow-x: hidden; /* Kein horizontales Scrollen */
    overflow-y: auto; /* Vertikales Scrollen erlauben */
    max-height: 80vh; /* Damit das Popup nicht zu gross wird */
}

#upload-progress-container {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#upload-progress-text {
    color: white; /* Weisser Text */
    text-align: center;
    margin-bottom: 5px;
}

#upload-progress-container > div {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
  
#upload-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}
  
#upload-progress-fill {
    width: 0%;
    height: 100%;
    background: #007aff;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.ios-label {
    font-weight: bold;
    color: #333;
}

.ios-input {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    margin-left: 8px;
    margin-right: 8px;
}

.ios-input:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.popup-actions {
    display: flex;
    justify-content: space-between;
}

.font-ios-button {
    border-radius: 10px;
    margin-left: 8px;
    margin-top: 8px;
    width: 170px;
    height: 57.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
    font-size: 20px;
    color: #888;
}

.font-ios-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    color: #007bff;
}

.font-item {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.font-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-name {
    font-size: 1.2rem;
}

/* Image section styles */
.image-item {
    position: relative;
    overflow: hidden;
    min-height: 225px;
    color: #007bff;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.image-name {
    font-size: 1.2rem;
    color: #888888;
    margin-top: 8px;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.5rem;
    transition: 0.3s ease;
}

.image-name::after {
    content: "...";
    position: absolute;
    right: 12px;
    bottom: 32px;
    color: #999;
    background: white;
    padding-left: 4px;
    display: none;
}

.image-name:hover {
    transition: 0.3s ease;
    color: #007bff;
}

.image-name.truncated::after {
    display: block;
}

.image-preview-container {
    margin: 2px 0;
    text-align: center;
}

#image-preview {
    width: 95%;
    height: auto;
    max-height: 350px;
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    margin-left: 8px;
}

.download-button {
    position: absolute;
    top: 16px;
    left: 50%; /* Horizontaler Startpunkt in der Mitte des Eltern-Elements */
    transform: translateX(-50%); /* Zentrieren durch Verschieben */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    width: 50%;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s ease;
    margin-left: 0px;
}

.download-button:hover {
    border-radius: 99px;
    transition: ease 0.2s;
}

.image-item:hover .download-button {
    opacity: 1;
}

#image-upload-container {
    padding-left: 16px;
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 4px;
    text-align: center;
}

.toast.show {
    transform: translateY(0);
}

.copy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 122, 255, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.copy-overlay.active {
    opacity: 1;
}

.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 16px;
    padding: 8px 0;
}

.settings-content.show {
    display: block;
}

.settings-item {
    width: 91%;
    padding: 12px 16px;
    border: 1px solid #d1d1d1;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #333333 !important;
}

.settings-item:focus {
    border: solid 2px #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.settings-item:hover {
    padding-left: 24px;
}

.settings-item.last {
    margin-bottom: 0px;
    color: #333333 !important;
}

.settings-item:hover {
    background-color: #f1f1f1;
}

.settings-item::after {
    content: '›';
    margin-left: 8px;
}

a#contact-text {
    color: #333;
    text-decoration: none;
}

.nested-dropdown {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 8px 0;
}

.nested-dropdown.show {
    display: block;
}

.language-option {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.language-option:hover {
    background-color: #f1f1f1;
}

/* Edit Icon */
.edit-icon {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.item:hover .edit-icon {
    opacity: 1;
}

.edit-icon:hover {
    color: #007bff;
}

.asset-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.asset-category h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.select-all {
    display: block;
    margin-bottom: 10px;
}

.asset-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.asset-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

.no-assets-message {
    text-align: center;
    padding: 20px;
    color: #666;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 300px;
    line-height: 1.5;
}

/* User-Status im Header */
.user-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Inter', sans-serif;
    color: #666;
}
  
  /* User-Info im Popup */
.user-email {
    background: #f5f5f5;
    margin: 15px 0;
    word-break: break-all;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    margin-left: 8px;
    margin-right: 8px;
    text-align: center;
}
  
#user-info button {
    margin-top: 10px;
}

#login-btn {
    width: 284px;
    margin-top: 0.8rem;
}

#register-btn {
    width: 284px;
    margin-top: 0.8rem;
}

#login-btn {
    width: 284px;
    margin-top: 0.8rem;
}

#logout-btn {
    width: 284px;
    margin-top: 0.8rem;
}

#close-logout-btn {
    width: 284px;
    margin-bottom: 0.55rem;
}

#close-login-btn {
    width: 284px;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.loading-text {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #333333;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
}

.loading-text-info {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #888;
    margin-top: 0px;
    line-height: 1.3rem;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-bars-wrapper {
    height: 50px; /* Fixe Höhe, damit nichts nach oben drückt */
    display: flex;
    align-items: flex-end; /* Basis bleibt unten fixiert */
}

.loading-bars {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.loading-bars span {
    display: inline-block;
    width: 20px;
    height: 30px;
    background: #555;
    border-radius: 6px;
    animation: wave 1.4s infinite ease-in-out;
}

.loading-bars span:nth-child(1) {
    animation-delay: 0s;
}
.loading-bars span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-bars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0%, 100% {
        height: 30px;
}
    50% {
        height: 50px;
}
}

p {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.storage-meter {
    width: 94.5%;
    height: 1rem;
    background: #e0e0e0;
    border-radius: 6px;
    margin: 1rem auto;
    overflow: hidden;
}
  
.storage-progress {
    height: 100%;
    background: #007AFF;
    transition: width 0.3s ease;
}
  
.storage-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}
  
.asset-stats {
    margin: 1rem 8px;
    font-size: 0.9rem;
}
  
.asset-stats div {
    display: flex;
    justify-content: space-between;
    margin: 0.3rem 0;
}

.button-dimensions-picker-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}
  
.button-dimensions-picker-container.active {
    display: block;
}
  
.button-dimensions-picker-container label {
    display: block;
    margin: 10px 0 5px;
}
  
.button-dimensions-picker-container input {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 11px 25px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-dimensions-picker-container input:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    padding: 10px 25px;
    outline: none;
}

  input#button-radius\ last {
    margin-bottom: 10px;
}

.button-dimensions-buttons {
    margin-bottom: 8px;
    margin-top: 8px;
}

.button-actions {
    margin-top: 12px; /* Abstand zu den Inputs */
    display: flex;
    justify-content: space-between; /* Buttons nebeneinander */
}
  
.button-preview {
    display: block;
    border: none;
    margin-bottom: 18px;
}
  
.button-name {
    font-weight: bold;
    margin-top: 5px;
}
  
.button-dimensions, .button-radius {
    font-size: 0.9em;
    color: #666;
}

.image-tags {
    display: flex;
    gap: 8px; /* Abstand zwischen den Tags */
    margin: 5px 0; /* Abstand nach oben und unten */
    justify-content: center;
}
  
.tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #666;
}
  
  /* Optional: Unterschiedliche Farben für die Tags */
.size-tag {
    background-color: #e6f0ff;
    color: #0066cc;
    margin-bottom: 0.5rem;
}
  
.type-tag {
    background-color: #e6ffe6;
    color: #008000;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.note-title {
    text-align: left;
    margin-top: 2rem;
    margin-left: 8px;
    margin-bottom: 2px;
    color: black;
}

input#note-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 89.5%;
}

input#note-title:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    padding: 10px 20px;
    outline: none;
}

.note-more {
    color: #007bff;
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}
  
.note-more:hover {
    color: #0056b3;
}
  
/* Full Note Popup */
.full-note-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.full-note-popup.show {
    opacity: 1;
}
  
  /* Restliche Styles bleiben gleich */
.full-note-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 2.5rem;
    color: #1d1d1f;
    border-radius: 12px;
    transition: ease 0.3s;
}

.full-note-title:focus {
    padding-left: 16px;
    border: 2px #007bff solid;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
    transition: ease 0.3s;
}
  
.full-note-text {
    font-size: 1.1rem;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 8px;
    margin-bottom: 1.5rem;
}
  
.close-note-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
  
.close-note-btn:hover {
    transform: scale(1.1);
}
  
@keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
}
    to {
      opacity: 1;
      transform: translateY(0);
}
}

.full-note-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative; /* Fixierte Position für zentrierte Ausrichtung */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Exakte Zentrierung */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    margin: 0; /* Entfernt mögliche Standard-Margins */
}

.last-edited {
    padding: 8px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

#full-note-text[contenteditable="true"] {
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 10px;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 15px;
}

#full-note-text[contenteditable="true"]:focus {
    border: 2px #007bff solid;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
    margin-bottom: 15px;
}

#edit-note-btn, #save-note-btn {
    margin-top: 10px;
}

.font-item {
  position: relative;
  overflow: hidden;
  min-height: 225px;
  color: #007bff;
}

.font-preview {
  font-size: 2rem;
  margin: 10px 0;
  margin-top: 0px;
  text-align: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  color: black;
}

.font-name {
  font-size: 1.2rem;
  color: #888888;
  margin-top: 8px;
  margin-bottom: 12px;
  word-break: break-word;
  line-height: 1.5rem;
  transition: 0.3s ease;
}

.font-name:hover {
  color: #007bff;
}

.font-tags {
  display: flex;
  gap: 8px;
  margin: 5px 0;
  justify-content: center;
}

.download-button {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.font-item:hover .download-button {
  opacity: 1;
}

.textsize-preview {
    font-family: 'Inter', sans-serif;
    max-height: 100px; /* Begrenzte Höhe */
    overflow: hidden; /* Kein Scrollen in der Vorschau */
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
  
.item.textsize-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
  
.textsize-preview-container {
    width: 100%;
    max-height: 100px;
    overflow: hidden;
    margin: 30px 0px;
}
  
.textsize-name {
    font-size: 1.2rem;
    color: #888888;
    margin-top: 8px;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.5rem;
    transition: 0.3sease;
}
  
.textsize-value {
    font-size: 14px;
    color: #555;
    margin: 6px;
}

#underline-btn:focus {
    padding: 10px 16px;
}

#italic-btn:focus {
    padding: 10px 16px;
}

#bold-btn:focus {
    padding: 10px 16px;
}

#reset-password-form {
    text-align: center;
}
  
#reset-password-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

#reset-password-form input {
    width: 284.5px;
    padding: 12px;
    padding-left: 15px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-left: 8px;
    margin-right: 8px;
}

#reset-password-form input:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}
  
#reset-password-form button {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    width: 284.5px;
}
  
#reset-password-form button:hover {
    background-color: #eaeaea;
}
  
#reset-password-link {
    color: #007aff;
    text-decoration: none;
    font-size: 0.9rem;
}
  
#reset-password-link:hover {
    text-decoration: underline;
}

#forgot-password-link-container {
    text-align: center;
    margin-top: 10px;
}
  
#forgot-password-link-container[style*="display: none"] {
    display: none !important;
}

.document-item {
    position: relative;
    overflow: hidden;
    min-height: 225px;
    color: #007bff;
}
  
.document-preview {
    width: 70%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin: 8px;
}
  
.document-name {
    font-size: 1.2rem;
    color: #888888;
    margin-top: 8px;
    margin-bottom: 12px;
    word-break: break-word;
    line-height: 1.5rem;
    transition: 0.3s ease;
}
  
.document-name:hover {
    color: #007bff;
}
  
.document-tags {
    display: flex;
    gap: 8px;
    margin: 5px 0;
    justify-content: center;
}
  
.document-item:hover .download-button {
    opacity: 1;
}

.full-document-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.full-document-popup.show {
    opacity: 1;
}
  
.full-document-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px; /* Breiter als Notizen für bessere Vorschau */
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    margin: 0;
}
  
.full-document-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 2.5rem;
    color: #1d1d1f;
}
  
.full-document-preview {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 15px 8px;
}
  
.full-document-preview iframe,
.full-document-preview embed {
    width: 100%;
    height: 500px; /* Feste Höhe für eingebettete Vorschau */
    border: none;
}
  
.full-document-preview p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}
  
.close-document-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
  
.close-document-btn:hover {
    transform: scale(1.1);
}
  
#download-document-btn {
    margin: 10px 8px;
}

.preview-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    width: 50%;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin: 0;
}
  
.preview-button:hover {
    border-radius: 99px;
    transition: ease 0.2s;
}
  
.document-item:hover .preview-button {
    opacity: 1;
}
  
  /* Anpassung des Download-Buttons, um Platz zu machen */
.download-button {
    top: 16px; /* Originalposition beibehalten */
}

#settings-email {
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: not-allowed;
    transition: all 0.3s ease;
}
  
#settings-password {
    margin: 10px 8px;
    color: #666;
}
  
#active-sessions h3 {
    margin: 20px 8px 10px;
    font-size: 1.2rem;
}
  
#sessions-list {
    list-style: none;
    padding: 0;
    margin: 0 8px;
}
  
#sessions-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
  
#sessions-list li button {
    background: #e6352b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}
  
#sessions-list li button:hover {
    background: #9e231c;
}

#settings-popup .popup-content {
    max-height: 80vh; /* Maximal 80% der Bildschirmhöhe */
    overflow-y: auto; /* Scrollen, wenn der Inhalt zu lang ist */
    padding: 20px; /* Innenabstand für mehr Luft */
    box-sizing: border-box; /* Verhindert, dass Padding die Grösse überschreitet */
}

@media (max-width: 600px) {
    #settings-popup .popup-content {
        width: 90vw; /* 90% der Bildschirmbreite */
        padding: 10px; /* Weniger Abstand auf kleinen Geräten */
  }
}

.color-picker-container {
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 300px; /* Beispielbreite, kannst du anpassen */
}
  
.color-input-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Hex-Feld und Colorpicker */
}

.color-input {
    width: 100%; /* Volle Breite */
    height: 40px; /* Höhe für bessere Sichtbarkeit */
    border: none;
    cursor: pointer;
    margin-bottom: 15px; /* Abstand zu den Buttons */
}
  
.hex-input {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 95%; /* Volle Breite */
    box-sizing: border-box; /* Padding wird in Breite eingerechnet */
    margin-bottom: 10px; /* Abstand zum Colorpicker */
    margin-left: 8px;
  }
  
#color {
    width: 95%;
    padding: 0;
    border: none;
    cursor: pointer;
    margin: 4px 8px;
    margin-bottom: 24px;
    border-radius: 16px;
}

#hex-input:focus {
    border-color: #007bff;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
}

.color-input-container label {
    font-size: 14px;
    margin-right: 5px;
}
  
#input-info {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Abstand zwischen den Buttons */
}

.cancel-button, .save-button {
    flex: 1; /* Jeder Button nimmt die Hälfte der Breite */
    padding: 10px;
    font-size: 14px;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 8px;
}
  
.cancel-button:hover, .save-button:hover {
    background-color: #e0e0e0;
}

#email-verification-status {
    background: #f5f5f5;
    margin: 15px 0;
    word-break: break-all;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    padding: 10px 16px;
    color: #333;
    margin-left: 8px;
    margin-right: 8px;
    text-align: center;
}
  
#resend-verification-btn {
    margin-top: 10px;
}