/* Стили для форм */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-select:hover {
    border-color: #adb5bd;
}

.form-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #ffffff;
    color: #495057;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.btn-generate {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Quick time selector */
.quick-time {
    margin: 20px 0 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.quick-time .form-label {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 12px;
}

.quick-time .time-picker-controls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.quick-time .time-select {
    min-width: 90px;
    padding: 10px 14px;
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #2c5aa0;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.1);
    appearance: none;
    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='%232c5aa0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.quick-time .time-select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
    transform: translateY(-1px);
}

.quick-time .time-select:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.15);
}

.quick-time .time-select option {
    background: white;
    color: #2c5aa0;
    padding: 6px;
    font-weight: 500;
}

.quick-time .time-colon {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(44, 90, 160, 0.2);
}

.quick-time .btn-generate {
    background: linear-gradient(135deg, #2c5aa0, #1e4080);
    box-shadow: 0 3px 10px rgba(44, 90, 160, 0.25);
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.quick-time .btn-generate:hover {
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.35);
    transform: translateY(-1px);
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-label {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 15px;
}

.time-value {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.time-settings-btn {
    padding: 16px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2c5aa0, #1e4080) !important;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    min-width: 180px !important;
}

.time-settings-btn:hover {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4) !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #1e4080, #2c5aa0) !important;
}

/* Time selection modal */
.time-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.time-modal.show {
    opacity: 1;
    visibility: visible;
}

.time-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.time-modal.show .time-modal-content {
    transform: scale(1) translateY(0);
}

.time-modal-header {
    margin-bottom: 24px;
}

.time-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.time-modal-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.time-modal-picker {
    margin: 32px 0;
}

.time-modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.time-modal-select {
    padding: 16px 20px;
    border: 2px solid rgba(47, 199, 247, 0.2);
    border-radius: 16px;
    background: white;
    font-size: 18px;
    color: #1e293b;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(47, 199, 247, 0.1);
    appearance: none;
    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='%232fc7f7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
    min-width: 120px;
}

.time-modal-select:focus {
    outline: none;
    border-color: #2fc7f7;
    box-shadow: 0 0 0 4px rgba(47, 199, 247, 0.15);
    transform: translateY(-2px);
}

.time-modal-select:hover {
    border-color: #2fc7f7;
    box-shadow: 0 6px 16px rgba(47, 199, 247, 0.2);
}

.time-modal-select option {
    background: white;
    color: #1e293b;
    padding: 12px;
    font-weight: 500;
    font-size: 16px;
}

.time-modal-colon {
    font-weight: 700;
    color: #2fc7f7;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(47, 199, 247, 0.3);
}

.time-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.time-modal-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.time-modal-btn-primary {
    background: linear-gradient(135deg, #2fc7f7, #1ea6d1);
    color: white;
    box-shadow: 0 4px 16px rgba(47, 199, 247, 0.3);
}

.time-modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(47, 199, 247, 0.4);
    transform: translateY(-2px);
}

.time-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    transform: translateY(-1px);
}



.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:hover {
    border-color: #adb5bd;
}

/* Generation Type Selector */
.generation-type-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    flex: 1;
}

.radio-option:hover {
    border-color: #2c5aa0;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2c5aa0;
    background: #2c5aa0;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: #2c5aa0;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #2c5aa0;
}
