/* Modern Cron Job Generator Design */

/* Disable nice-select for cron generator - use native select styling */
.cron-modern-container .nice-select {
    display: none !important;
}

.cron-modern-container .cron-select {
    display: block !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Ensure cron-select is visible and nice-select is hidden */
.cron-select {
    position: relative !important;
    z-index: 1 !important;
}

.cron-select + .nice-select {
    display: none !important;
}

/* Main Container */
.cron-modern-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.cron-hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.cron-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.cron-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.cron-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cron-hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.cron-hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.cron-hero-visual {
    position: relative;
    z-index: 2;
}

.cron-expression-display {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cron-expression-display span {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.cron-next-runs {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.next-runs-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.95;
}

.next-runs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.next-run-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.next-run-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

/* Builder Section */
.cron-builder-section {
    margin-bottom: 3rem;
}

.cron-builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cron-selector-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cron-selector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.cron-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.selector-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.selector-header i {
    font-size: 1.5rem;
    color: #6366f1;
}

.selector-header span {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.cron-select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cron-select:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cron-custom-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
}

.cron-custom-input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Action Buttons */
.cron-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cron-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cron-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.cron-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.cron-btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cron-btn-secondary:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-2px);
}

/* Examples Section */
.cron-examples-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cron-examples-section h3 {
    text-align: center;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cron-examples-section h3 i {
    color: #f59e0b;
}

.cron-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.example-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.example-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.example-item:hover::before {
    left: 100%;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.example-expression {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.example-description {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cron-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cron-hero-text h1 {
        font-size: 2.2rem;
    }

    .cron-expression-display {
        padding: 1.5rem;
    }

    .cron-expression-display span {
        font-size: 1.4rem;
    }

    .cron-builder-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cron-selector-card {
        padding: 1.5rem;
    }

    .cron-actions {
        flex-direction: column;
        align-items: center;
    }

    .cron-btn {
        width: 200px;
        justify-content: center;
    }

    .cron-examples-grid {
        grid-template-columns: 1fr;
    }

    .cron-examples-section {
        padding: 2rem;
    }
}

/* Dark Mode Support */
.dark-mode .cron-modern-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .cron-selector-card,
.dark-mode .cron-examples-section {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .cron-select,
.dark-mode .cron-custom-input {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .cron-select:focus,
.dark-mode .cron-custom-input:focus {
    background: #2d3748;
    border-color: #6366f1;
}

.dark-mode .cron-btn-secondary {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .cron-btn-secondary:hover {
    background: #4a5568;
    border-color: #6b7280;
}

.dark-mode .example-item {
    background: linear-gradient(135deg, #374151 0%, #2d3748 100%);
    border-color: #4a5568;
}

.dark-mode .example-expression {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .example-description {
    color: #9ca3af;
}