:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #34d399;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.input-section {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-icon {
    cursor: help;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.info-icon:hover {
    color: var(--primary);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: var(--bg-dark);
    color: var(--text);
    text-align: left;
    border-radius: 6px;
    padding: 1rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--border) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

label {
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
}

label i {
    color: var(--primary);
}

textarea {
    height: 150px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    resize: vertical;
    font-family: 'Fira Code', monospace;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

button:active {
    transform: translateY(0);
}

.results {
    display: none;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.results.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    gap: 2rem;
}

.details-section, .examined-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.details-section {
    max-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.25rem;
    color: #fff;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    font-size: 0.9rem;
    border-radius: 6px;
}

.copy-btn:hover {
    background: rgba(55, 65, 81, 0.8);
}

.copy-btn.copied {
    background: var(--success);
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 8px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

pre::-webkit-scrollbar {
    width: 6px;
}

pre::-webkit-scrollbar-track {
    background: transparent;
}

pre::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
}

pre::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

.examined-section {
    display: flex;
    flex-direction: column;
}

.examined-section .section-header {
    margin-bottom: 1.5rem;
}

.examined-value {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.examined-value span {
    color: var(--text-muted);
    padding-left: 1rem;
    font-family: 'Fira Code', monospace;
}

.examined-value:hover {
    background: rgba(55, 65, 81, 0.3);
}

.examined-value:last-child {
    border-bottom: none;
}

.examined-value strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results.active {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Animation for copy feedback */
@keyframes copyFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-feedback {
    animation: copyFeedback 0.3s ease;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    z-index: 1000;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease forwards;
}

.toast.error {
    background: #ef4444;
    border-left: 4px solid #dc2626;
}

.toast.success {
    background: var(--primary);
    border-left: 4px solid var(--primary-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
} 

/* GitHub Corner Animation */
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
    0%, 100% { transform: rotate(0) }
    20%, 60% { transform: rotate(-25deg) }
    40%, 80% { transform: rotate(10deg) }
}

@media (max-width: 500px) {
    .github-corner:hover .octo-arm {
        animation: none;
    }
    .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out;
    }
}

/* Footer Styles */
.footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary-dark);
}

.footer .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}