/*Feedback*/
/* Design Feedback Banner */
.design-feedback-banner {
    background: linear-gradient(to right, #26262C, #2d2d35);
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 15px 20px;
    margin: 20px auto 30px;
    max-width: 800px;
    position: relative;
    display: none;
    /* Hidden by default, shown via JS */
    animation: slideFadeIn 0.5s ease-out forwards;
    z-index: 100;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feedback-content p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.feedback-btn {
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.feedback-yes {
    background-color: #9b59b6;
    color: #ffffff;
}

.feedback-no {
    background-color: #36363d;
    color: #ffffff;
    border: 1px solid #555;
}

.feedback-yes:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
}

.feedback-no:hover {
    background-color: #43434a;
    transform: translateY(-2px);
}

.close-feedback {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #9b9ba7;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-feedback:hover {
    color: #ffffff;
}

/*Language Selection Popup Design*/

.language-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #26262C;
    color: white;
    padding: 30px 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
}

.popup-content p {
    text-align: center;
    color: #dddddd;
}

.popup-buttons {
    margin-top: 20px;
    text-align: center;
}

.btn {
    margin: 0 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background: #6A0DAD;
    color: white;
}

.btn-primary:hover {
    background: #7d29d2;
    transform: scale(1.03);
}

.btn-secondary {
    background: #444;
    color: #ccc;
}

.btn-secondary:hover {
    background: #555;
    transform: scale(1.03);
}

#language-select {
    margin-top: 15px;
    padding: 8px 12px;
    background-color: #1B1B1F;
    color: white;
    border: 1px solid #6A0DAD;
    border-radius: 6px;
    width: 100%;
}

#language-select:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 5px #6A0DADAA;
}

#apply-lang {
    margin-top: 10px;
    background: #6A0DAD;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#apply-lang:hover {
    background: #7d29d2;
    transform: scale(1.03);
}

/*Language Selector Design*/
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
}

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

.language-btn {
    background-color: #1B1B1F;
    border: 1px solid #6A0DAD;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, border 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between flag and text */
}

.language-btn:hover {
    background-color: #26262C;
    border-color: #9b59b6;
    box-shadow: 0 0 5px #6A0DADAA;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    background-color: #1B1B1F;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    bottom: 100%;
    right: 0;
    border-radius: 6px;
    border: 1px solid #6A0DAD;
    overflow: hidden;
}

.language-dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between flag and text */
    font-weight: normal;
    transition: background 0.3s;
}

.language-dropdown-content a:hover {
    background-color: #26262C;
}

.language-dropdown:hover .language-dropdown-content {
    display: block;
}

/* inline SVG flag styling */
.flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}
/* Border Styles */
.animated-border {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    padding: 16px;
    background: transparent;
}

.animated-border::before,
.animated-border::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
}

.animated-border::before {
    scale: calc(1.7);
    animation: spin 5s linear infinite;
}

.animated-border::after {
    inset: 4px;
    z-index: -1;
    border-radius: 8px;
    background: #26262C;
}

.rainbow-border::before {
    background: conic-gradient(#6A0DAD, #c182ee, #6A0DAD);
}

.silver-border::before {
    background: conic-gradient(#e0e0e0, #b0b0b0, #f8f8f8, #a0a0a0, #e0e0e0, #b0b0b0, #f8f8f8, #a0a0a0, #e0e0e0);
}

.gold-border::before {
    background: conic-gradient(#ffd700, #fff8dc, #e6be8a, #b8860b, #ffd700, #fff8dc, #e6be8a, #b8860b, #ffd700);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}