.jwt-decoder-bg {
    background: linear-gradient(180deg, #100025 40%, #110141 100%), #D9D9D9;
    transition: background 0.3s ease-in-out;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jwt-decoder-bg-stars {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 auto;
    padding: 50px 150px;
}

.jwt-decoder-wrapper {
    width: 100%;
    display: flex;
    gap: 50px;
    margin: 3rem 0 3rem 0;
    height: auto;
    min-height: 650px;
    flex: 1;
}

.jwt-decoder-card {
    position: relative;
    background: #1e1e2f;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    width: 40%;
    border: none;
}

.jwt-decoder-card:hover {
    box-shadow: 1px 1px 5px 2px #6E00FF;
}

.jwt-decoder-result-card {
    position: relative;
    background: #1E1E2F;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    width: 60%;
}

.jwt-decoder-result-card:hover {
    box-shadow: 1px 1px 5px 2px #6E00FF;
}

.jwt-decoder-card-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.jwt-decoder-card-header span {
    color: #fff;
    font-size: 24px;
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-right: 10px;
}

.jwt-decoder-card-content {
    padding: 2rem;
}

.jwt-decoder-input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.jwt-decoder-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jwt-decoder-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jwt-decoder-input {
    width: 100%;
    min-height: 120px;
    border: 2px solid #39394e;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: #272737;
    color: #fff;
    resize: vertical;
    word-break: break-all;
}

.jwt-decoder-input:focus {
    outline: none;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.2);
}

.jwt-decoder-input::placeholder {
    color: #9ca3af;
}

.jwt-decoder-result-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.jwt-decoder-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jwt-decoder-result-section {
    background: #272737;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #39394e;
}

.jwt-decoder-result-section h4 {
    color: #6E00FF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #39394e;
}

.jwt-decoder-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.jwt-decoder-section-header h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.jwt-decoder-copy-btn {
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.jwt-decoder-copy-btn:hover {
    background: #5900cc;
    transform: scale(1.1);
}

.jwt-decoder-code-container {
    position: relative;
}

.jwt-decoder-code-output {
    width: 100%;
    min-height: 120px;
    border: 2px solid #39394e;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: #1e1e2f;
    color: #f8f8f2;
    resize: vertical;
}

.jwt-decoder-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #39394e;
}

.jwt-decoder-result-item:last-child {
    border-bottom: none;
}

.jwt-decoder-result-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
}

.jwt-decoder-result-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Monaco', 'Consolas', monospace;
    word-break: break-all;
    text-align: right;
}

.jwt-decoder-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.jwt-decoder-status.valid {
    background: #10b981;
    color: white;
}

.jwt-decoder-status.expired {
    background: #f59e0b;
    color: white;
}

.jwt-decoder-status.invalid {
    background: #dc2626;
    color: white;
}

.jwt-decoder-signature-content {
    background: #1e1e2f;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #39394e;
}

.jwt-decoder-signature-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: #f8f8f2;
    word-break: break-all;
    line-height: 1.6;
}

.jwt-decoder-result {
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: jwt-decoder-fade 0.3s ease;
}

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

.jwt-decoder-result-error {
    background: #d52e08;
    color: #ffff;
    margin: 0 1rem;
}

.jwt-decoder-result-success {
    background: #36B37E;
    color: #ffff;
    margin: 0 1rem;
}

.jwt-decoder-result-warning {
    background: linear-gradient(135deg, #f5a623, #f5a623);
    color: #ffff;
    margin: 0 1rem;
    margin-top: 15px;
}

.tool-jwt-decoder-content-page {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.tool-jwt-decoder-content-page ul li {
    list-style-type: initial;
    margin-left: 15px;
}

.tool-jwt-decoder-content-page ol li {
    list-style-type: initial;
    margin-left: 15px;
}

.jwt-decoder-faq-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.jwt-decoder-faq-item {
    margin-bottom: 8px;
}

.jwt-decoder-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px 0;
    font-size: 18px;
    color: #100025;
    font-weight: 500;
    line-height: 28px;
    font-family: 'Inter', sans-serif;
}

.jwt-decoder-faq-answer {
    display: none;
    font-size: 16px;
    font-weight: 400;
    color: #6E7D88;
    line-height: 24px;
}

.jwt-decoder-divider {
    border: 0;
    border-top: 0.1px solid #EEE;
    margin: 0;
}

/* Navbar and mobile styles */
.jwt-decoder-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    width: 100%;
}

.jwt-decoder-navbar h1 {
    color: white;
    font-size: 20px;
}

.jwt-decoder-coderspace-log-in-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: #6E00FF;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jwt-decoder-coderspace-log-in-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.jwt-decoder-mobile-navbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
}

.jwt-decoder-menu-icon {
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.jwt-decoder-mobile-navigation-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #1e1e2f;
    z-index: 1000;
    transition: height 0.3s ease;
    overflow: hidden;
}

.jwt-decoder-mobile-navigation-menu.show {
    height: 200px;
}

.jwt-decoder-mobile-navigation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.jwt-decoder-mobile-navigation-menu.show .jwt-decoder-mobile-navigation-content {
    opacity: 1;
}

.jwt-decoder-mobile-navigation-logo {
    width: 150px;
}

.jwt-decoder-navigation-login-btn {
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.jwt-decoder-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px 0;
    color: white;
}

.jwt-decoder-timer-breadcrumb-tools {
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
    letter-spacing: -0.4px
}

.jwt-decoder-timer-breadcrumb {
    font-size: 14px;
}

/* CodeMirror Custom Styles */
.jwt-decoder-wrapper .CodeMirror {
    height: auto;
    min-height: 120px;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    border: 2px solid #39394e;
}

.jwt-decoder-wrapper .CodeMirror-gutters {
    border-right: 1px solid #39394e;
    background-color: #1e1e2f;
}

.jwt-decoder-wrapper .CodeMirror-linenumber {
    color: #6E00FF;
}

.jwt-decoder-wrapper .CodeMirror-cursor {
    border-left: 2px solid #6E00FF;
}

.jwt-decoder-wrapper .CodeMirror-selected {
    background: #39394e !important;
}

.jwt-decoder-wrapper .CodeMirror-focused .CodeMirror-selected {
    background: #39394e !important;
}

/* Options styles */
.jwt-decoder-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.jwt-decoder-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1f2937;
    border-radius: 8px;
    padding: 10px 16px;
    color: #f9fafb;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    width: fit-content;
}

.jwt-decoder-option:hover {
    background-color: #374151;
}

.jwt-decoder-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jwt-decoder-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.jwt-decoder-option span::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    display: inline-block;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 4px;
    background-color: #111827;
}

.jwt-decoder-option input[type="checkbox"]:checked + span::before {
    background-color: #10b981;
    border-color: #10b981;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #6E00FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-button:hover {
    background-color: #5900cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-button--big {
    width: 100%;
    padding: 14px 28px;
    font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 1330px) {
    .jwt-decoder-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 50px;
    }

    .jwt-decoder-card {
        width: 100%;
    }

    .jwt-decoder-result-card {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .jwt-decoder-bg-stars {
        padding: 50px 100px;
    }
}

@media (max-width: 850px) {
    .jwt-decoder-card-header span {
        font-size: 20px;
    }

    .jwt-decoder-navbar h1 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .jwt-decoder-navbar {
        display: none;
    }

    .jwt-decoder-mobile-navbar {
        display: flex;
    }

    .jwt-decoder-bg-stars {
        padding: 50px 80px;
    }

    .jwt-decoder-wrapper {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .jwt-decoder-card, .jwt-decoder-result-card {
        width: 100%;
    }

    .primary-button {
        width: 100%;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
    }

    .jwt-decoder-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .jwt-decoder-result-label {
        min-width: auto;
    }

    .jwt-decoder-result-value {
        text-align: left;
        width: 100%;
    }

    .jwt-decoder-result-content {
        max-height: none;
    }
}

@media (max-width: 580px) {
    .jwt-decoder-bg-stars {
        padding: 50px 50px;
    }

    .jwt-decoder-card-content {
        padding: 1rem;
    }

    .jwt-decoder-card-header {
        padding: 1rem 1rem 0 1rem;
        display: grid;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .jwt-decoder-card-header span {
        font-size: 18px;
    }

    .jwt-decoder-option label {
        font-size: 14px;
    }

    .primary-button {
        font-size: 14px;
    }

    .jwt-decoder-result-success {
        margin: 1rem 0;
    }

    .jwt-decoder-result-error {
        margin: 1rem 0;
    }

    .jwt-decoder-wrapper {
        margin: 1rem 0 3rem 0;
    }

    .jwt-decoder-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .jwt-decoder-result-section {
        padding: 1rem;
    }

    .jwt-decoder-result-value {
        font-size: 12px;
    }

    .jwt-decoder-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .jwt-decoder-copy-btn {
        align-self: flex-end;
    }
}

@media (max-width: 450px) {
    .jwt-decoder-bg-stars {
        padding: 50px 20px;
    }
}
