/* Custom styles for the CRON Builder */

/* Cron field styles */
.cron-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.dark .cron-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Custom input container */
.custom-input {
    margin-top: 3rem;
    padding: 1rem;
    background-color: rgb(243, 244, 246);
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.75rem;
}

/* Custom input field */
.cron-custom-input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgb(243, 244, 246);
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.75rem;
    color: rgb(31, 41, 55);
}

/* Custom input buttons */
.custom-save-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgb(59, 130, 246);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
    margin-right: 0.75rem;
}

.custom-save-btn:hover {
    background-color: rgb(37, 99, 235);
}

.custom-cancel-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgb(243, 244, 246);
    color: rgb(31, 41, 55);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
}

.custom-cancel-btn:hover {
    background-color: rgb(209, 213, 219);
}

/* Preset button styles */
.preset-btn {
    padding: 0.75rem 1rem;
    background-color: rgb(243, 244, 246);
    color: rgb(31, 41, 55);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
    border: 1px solid rgb(209, 213, 219);
}

.preset-btn:hover {
    background-color: rgb(209, 213, 219);
}

/* Cron field container */
.cron-field {
    padding: 1rem;
    background-color: rgb(243, 244, 246);
    border-radius: 0.75rem;
    border: 1px solid rgb(209, 213, 219);
}

/* Tooltip styles */
.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 10;
    padding: 0.25rem 0.5rem;
    background-color: rgb(31, 41, 55);
    color: white;
    text-size: 0.75rem;
    border-radius: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: max-content;
    max-width: 250px;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Animation for copy notification */
@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.copy-notification {
    animation: fadeInOut 2s ease-in-out forwards;
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background-color: rgb(34, 197, 94);
    color: white;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

/* Tab panel styles */
.tab-panel {
    display: block;
    padding: 1rem;
}

.tab-panel.hidden {
    display: none !important;
}

/* Tab button styles */
.tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-bottom-width: 2px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

/* Fix for drop-down arrows */
select {
    /* Remove custom background image */
}

.dark select {
    /* Remove custom background image */
}

/* Animation for copy button */
#copy-btn {
    transition: all 0.2s ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.3s ease-in-out;
}

/* Export format select styling */
#export-format {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.dark #export-format {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Export result styles */
#export-result {
    font-family: 'Courier New', monospace;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Copy animation */
@keyframes copy-success {
    0% { background-color: rgb(16, 185, 129); }
    90% { background-color: rgb(16, 185, 129); }
    100% { background-color: rgb(37, 99, 235); }
}

.copy-success {
    animation: copy-success 1.5s ease forwards;
}

/* Integration language select styling */
#integration-language {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.dark #integration-language {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Integration code styles */
#integration-code {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Improved error highlighting */
.error-highlight {
    animation: pulse-error 2s infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
}

@keyframes pulse-error {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Style for error messages */
#cron-validation-error {
    max-width: 100%;
    overflow-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style for disabled copy button */
#copy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
} 