/* JWT Tool Page Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

h2 {
    color: #2c3e50;
    margin-top: 30px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

h3 {
    color: #3498db;
    margin-top: 20px;
}

h4 {
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 10px;
}

.navigation-links {
    margin: 20px 0;
    padding: 10px;
    background-color: #f0f7fc;
    border-left: 4px solid #3498db;
    border-radius: 3px;
}

.navigation-links a {
    text-decoration: none;
    color: #3498db;
    margin-right: 10px;
    padding: 5px;
    transition: color 0.3s;
}

.navigation-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Tab styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin-right: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    background-color: #e9e9e9;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

/* Input/Output styles */
.input-group, .output-group {
    margin-bottom: 20px;
}

.input-group label, .output-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group textarea, .output-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* Output sections for decoded JWT */
.output-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.output-group textarea {
    min-height: 80px;
}

.signature-group textarea {
    min-height: 40px;
}

/* Button styles */
.buttons {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buttons button, #copyBtn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons button:hover, #copyBtn:hover {
    background-color: #2980b9;
}

#clearDecodeBtn, #clearEncodeBtn {
    background-color: #e74c3c;
}

#clearDecodeBtn:hover, #clearEncodeBtn:hover {
    background-color: #c0392b;
}

#copyBtn {
    margin-top: 5px;
}

/* Explanation section */
.explanation {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f8f8f8;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #e1e1e1;
    font-size: 0.9em;
    word-break: break-all;
}

ul {
    padding-left: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        border-radius: 5px;
        margin-bottom: 5px;
        border: 1px solid #ddd;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .buttons button, #copyBtn {
        width: 100%;
        margin-bottom: 5px;
    }
}