/* JWT Token Decoder Tool Styles */

/* Hero Section */
.jwt-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
}

.jwt-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.jwt-hero .lead {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.jwt-hero .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.jwt-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.jwt-hero .breadcrumb-item a:hover {
    color: white;
}

.jwt-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* Main Container */
.jwt-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Form Styles */
.jwt-form {
    margin-bottom: 2rem;
}

.jwt-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.jwt-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.jwt-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.jwt-form textarea {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.jwt-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.jwt-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Loading Indicator */
.jwt-loading {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.jwt-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.jwt-loading p {
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

/* Error Message */
.jwt-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Results Section */
.jwt-results {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.jwt-results h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.result-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-section h5 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-section pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
}

.result-section code {
    color: #495057;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Security Info */
.security-info {
    font-family: system-ui, -apple-system, sans-serif;
}

.security-info > div {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.security-info span {
    font-weight: 600;
    color: #667eea;
}

.security-info ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.security-info li {
    margin-bottom: 0.5rem;
    color: #dc3545;
}

/* Sidebar */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-body h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    color: #495057;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Dark Mode Support */
[data-theme="dark"] .jwt-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

[data-theme="dark"] .jwt-container {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid var(--border-color, #334155);
}

[data-theme="dark"] .jwt-form .form-label {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .jwt-form .form-control {
    background-color: var(--bg-secondary, #374151);
    border-color: var(--border-color, #4b5563);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .jwt-form .form-control:focus {
    background-color: var(--bg-secondary, #374151);
    border-color: var(--accent-color, #60a5fa);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .jwt-loading {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .jwt-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
}

[data-theme="dark"] .jwt-results {
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .jwt-results h3 {
    color: var(--accent-color, #60a5fa);
    border-bottom-color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .result-section {
    background-color: var(--bg-secondary, #374151);
    border-color: var(--border-color, #4b5563);
}

[data-theme="dark"] .result-section h5 {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .result-section pre {
    background-color: var(--bg-tertiary, #4b5563);
    border-color: var(--border-color, #6b7280);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .result-section code {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .security-info span {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .card {
    background-color: var(--card-bg, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .card-body h5 {
    color: var(--accent-color, #60a5fa);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--bg-secondary, #374151);
    color: var(--accent-color, #60a5fa);
}

/* Responsive Design */
@media (max-width: 768px) {
    .jwt-hero h1 {
        font-size: 2rem;
    }
    
    .jwt-container {
        padding: 1.5rem;
    }
    
    .result-section {
        padding: 1rem;
    }
}
