/* Crontab Descriptor — custom styles */

/* Input section */
.input-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Input groups */
.input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preset-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.input-group select {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
}

.input-group input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.input-group input[type="text"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group button {
    padding: 0.5rem 1.25rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.input-group button:hover {
    background: #1d4ed8;
}

/* Output section */
.output-section {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.output-section h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

#result {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    min-height: 48px;
}

.error {
    color: #dc2626;
    font-size: 0.875rem;
}

/* How-to */
.howto {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.howto h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.howto ol {
    padding-left: 1.25rem;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0;
}

/* FAQ */
.faq {
    margin-bottom: 1.25rem;
}

.faq h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.faq details {
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.faq details summary {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: #f9fafb;
    color: #111827;
    list-style: none;
}

.faq details summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    border-top: 1px solid #e0e6ed;
    margin: 0;
}

.faq details code {
    background: #f3f4f6;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: #1d4ed8;
}

/* Related */
.related {
    margin-bottom: 1.25rem;
}

.related h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related ul li {
    font-size: 0.875rem;
    color: #374151;
}

.related ul li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.related ul li a:hover {
    text-decoration: underline;
}

/* Dark mode */
html[data-theme="dark"] .input-section,
html[data-theme="dark"] .output-section,
html[data-theme="dark"] .howto {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .preset-label {
    color: #d1d5db;
}

html[data-theme="dark"] .input-group select,
html[data-theme="dark"] .input-group input[type="text"] {
    background: #111827;
    color: #f9fafb;
    border-color: #374151;
}

html[data-theme="dark"] .output-section h3 {
    color: #f9fafb;
}

html[data-theme="dark"] #result {
    background: #111827;
    color: #d1d5db;
    border-color: #374151;
}

html[data-theme="dark"] .howto h2,
html[data-theme="dark"] .faq h2,
html[data-theme="dark"] .related h2 {
    color: #f9fafb;
}

html[data-theme="dark"] .howto ol {
    color: #d1d5db;
}

html[data-theme="dark"] .faq details {
    border-color: #374151;
}

html[data-theme="dark"] .faq details summary {
    background: #111827;
    color: #f9fafb;
}

html[data-theme="dark"] .faq details p {
    color: #d1d5db;
    border-color: #374151;
}

html[data-theme="dark"] .faq details code {
    background: #374151;
    color: #93c5fd;
}

html[data-theme="dark"] .related ul li {
    color: #d1d5db;
}
