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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Геометрические элементы в стиле Кандинского */
body::before {
    content: '';
    position: fixed;
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(70, 70, 70, 0.3);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 15%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: rgba(90, 90, 90, 0.25);
    transform: rotate(45deg);
    z-index: 0;
}

.container {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    padding: 50px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(80, 80, 80, 0.5);
}

/* Декоративный элемент в углу контейнера */
.container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    border-radius: 50%;
    opacity: 0.4;
}

header {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

h1 {
    font-size: 2.8rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'Oks Free', 'Georgia', serif;
}

.subtitle {
    color: #b0b0b0;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
}

.input-section {
    margin-bottom: 40px;
    border: 2px solid #404040;
    border-radius: 20px;
    overflow: hidden;
    background: #252525;
}

.input-header {
    display: flex;
    background: linear-gradient(90deg, #2d2d2d 0%, #333333 100%);
    border-bottom: 2px solid #404040;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background: rgba(100, 100, 100, 0.3);
    color: #e0e0e0;
}

.tab-btn.active {
    color: #e0e0e0;
    background: #252525;
    position: relative;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #C9A584 0%, #B08968 100%);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    padding: 25px;
}

.tab-content.active {
    display: block;
}

#text-input {
    width: 100%;
    min-height: 320px;
    padding: 20px;
    border: 2px solid #404040;
    border-radius: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.3s ease;
    background: #1a1a1a;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#text-input:focus {
    outline: none;
    border-color: #C9A584;
    box-shadow: 0 0 0 3px rgba(201, 165, 132, 0.2);
}

#text-input::placeholder {
    color: #707070;
    font-style: italic;
}

.upload-area {
    text-align: center;
    padding: 45px;
    border: 3px dashed #404040;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.3) 0%, rgba(40, 40, 40, 0.3) 100%);
}

.upload-area:hover {
    border-color: #C9A584;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.5) 0%, rgba(50, 50, 50, 0.5) 100%);
}

.upload-area.dragover {
    border-color: #B08968;
    background: rgba(201, 165, 132, 0.15);
    transform: scale(1.02);
}

.upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 165, 132, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.upload-label:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 165, 132, 0.4);
    background: linear-gradient(135deg, #B08968 0%, #A67C52 100%);
}

#file-input {
    display: none;
}

.file-name {
    margin-top: 18px;
    color: #b0b0b0;
    font-size: 0.95rem;
    font-style: italic;
}

.file-name.active {
    color: #C9A584;
    font-weight: 600;
    font-style: normal;
}

.styles-section {
    margin-bottom: 45px;
}

.styles-section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.theme-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.theme-btn {
    padding: 11px 28px;
    background: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.theme-btn:hover {
    background: #333333;
    border-color: #C9A584;
    color: #e0e0e0;
}

.theme-btn.active {
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    border-color: #B08968;
    box-shadow: 0 4px 12px rgba(201, 165, 132, 0.3);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
}

.style-card {
    border: 2px solid #404040;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #252525;
    position: relative;
    overflow: hidden;
}

/* Геометрический элемент внутри карточки */
.style-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.15);
    transition: all 0.3s ease;
}

.style-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: #C9A584;
}

.style-card:hover::before {
    background: rgba(201, 165, 132, 0.25);
    transform: scale(1.3);
}

.style-card.selected {
    border-color: #B08968;
    background: linear-gradient(135deg, rgba(201, 165, 132, 0.15) 0%, rgba(176, 137, 104, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(201, 165, 132, 0.3);
}

.style-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.style-preview {
    width: 100%;
    height: 90px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #404040;
}

.minimal-preview {
    background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
}

.corporate-preview {
    background: linear-gradient(180deg, #555555 0%, #2a2a2a 100%);
}

.creative-preview {
    background: linear-gradient(135deg, #6a5a4a 0%, #C9A584 50%, #B08968 100%);
}

.eclectic-preview {
    background: linear-gradient(135deg, #C9A584 0%, #5a5a5a 50%, #B08968 100%);
}

.modern-preview {
    background: linear-gradient(135deg, #B08968 0%, #4a4a4a 50%, #3a3a3a 100%);
}

.style-card h3 {
    color: #e0e0e0;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.style-card p {
    color: #b0b0b0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(201, 165, 132, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Геометрический эффект на кнопке */
.generate-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.generate-btn:hover::before {
    width: 300px;
    height: 300px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 165, 132, 0.4);
    background: linear-gradient(135deg, #B08968 0%, #A67C52 100%);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #5a5a5a;
    box-shadow: none;
}

.generate-btn:disabled:hover {
    transform: none;
}

@media (max-width: 768px) {
    .container {
        padding: 30px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    body::before,
    body::after {
        display: none;
    }
}

/* Дополнительные декоративные элементы */
@media (min-width: 1024px) {
    body {
        background-image: 
            radial-gradient(circle at 20% 80%, rgba(80, 80, 80, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(90, 90, 90, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    }
}

/* PDF стили карусель */
.pdf-styles-section {
    margin-bottom: 50px;
}

.pdf-styles-section h2 {
    color: #e0e0e0;
    margin-bottom: 35px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
}

.pdf-style-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pdf-style-btn {
    border: 3px solid #404040;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    font-family: inherit;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Геометрический элемент в углу */
.pdf-style-btn::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 165, 132, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.pdf-style-btn:hover::after {
    opacity: 1;
    top: -20px;
    right: -20px;
    transform: rotate(45deg);
}

/* Эффект свечения при наведении */
.pdf-style-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 165, 132, 0.25) 0%, rgba(176, 137, 104, 0.1) 50%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.pdf-style-btn:hover::before {
    width: 400px;
    height: 400px;
}

.pdf-style-btn > * {
    position: relative;
    z-index: 1;
}

.pdf-style-btn:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(201, 165, 132, 0.4), 0 0 0 1px rgba(201, 165, 132, 0.2);
    border-color: #C9A584;
}

.pdf-style-btn:active {
    transform: translateY(-6px) scale(0.98);
    transition: all 0.15s ease;
}

.pdf-style-btn.selected {
    border-color: #B08968;
    background: linear-gradient(135deg, rgba(201, 165, 132, 0.25) 0%, rgba(176, 137, 104, 0.25) 100%);
    box-shadow: 0 12px 35px rgba(201, 165, 132, 0.5), 0 0 0 1px rgba(176, 137, 104, 0.3);
    animation: pulseSelected 2.5s ease-in-out infinite;
}

@keyframes pulseSelected {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(201, 165, 132, 0.5), 0 0 0 1px rgba(176, 137, 104, 0.3);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 16px 45px rgba(201, 165, 132, 0.7), 0 0 0 1px rgba(176, 137, 104, 0.5);
        transform: translateY(-2px);
    }
}

.pdf-style-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(201, 165, 132, 0.6), 0 0 0 3px rgba(201, 165, 132, 0.2);
    animation: checkmarkAppear 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-360deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.style-preview-box {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(64, 64, 64, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pdf-style-btn:hover .style-preview-box {
    transform: scale(1.05) translateY(-4px);
    border-color: rgba(201, 165, 132, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Стиль Спринт */
.sprint-preview {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 16px;
    transition: all 0.4s ease;
    position: relative;
}

.sprint-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #666 50%, transparent 100%);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.pdf-style-btn:hover .sprint-preview {
    background: linear-gradient(135deg, #000 0%, #0a0a0a 100%);
}

.sprint-preview .preview-line {
    height: 3px;
    background: linear-gradient(90deg, #666 0%, #888 50%, #666 100%);
    margin-bottom: 12px;
    border-radius: 2px;
    animation: expandWidth 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.sprint-preview .preview-text {
    height: 8px;
    background: linear-gradient(90deg, #444 0%, #555 100%);
    margin-bottom: 8px;
    border-radius: 3px;
    animation: fadeIn 0.9s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sprint-preview .preview-text.short {
    width: 65%;
}

/* Стиль Роадмап */
.roadmap-preview {
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
}

.pdf-style-btn:hover .roadmap-preview {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.roadmap-preview .preview-gradient {
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    animation: gradientShift 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.roadmap-preview .preview-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    }
    50% {
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    }
}

.roadmap-preview .preview-card {
    position: absolute;
    top: 60px;
    left: 14px;
    right: 14px;
    height: 38px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.roadmap-preview .preview-card.small {
    top: 105px;
    height: 30px;
    animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стиль Отчёт */
.report-preview {
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
}

.pdf-style-btn:hover .report-preview {
    background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
}

.report-preview .preview-gradient.green {
    height: 52px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    animation: gradientShiftGreen 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.report-preview .preview-gradient.green::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes gradientShiftGreen {
    0%, 100% {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    }
    50% {
        background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
    }
}

.report-preview .preview-metrics {
    position: absolute;
    top: 62px;
    left: 14px;
    right: 14px;
    height: 34px;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    border-radius: 8px;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.report-preview .preview-chart {
    position: absolute;
    top: 105px;
    left: 14px;
    right: 14px;
    height: 42px;
    background: linear-gradient(to top, 
        #3b82f6 0%, 
        #3b82f6 65%, 
        rgba(59, 130, 246, 0.3) 75%,
        transparent 100%);
    border-radius: 6px;
    animation: chartGrow 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -2px 10px rgba(59, 130, 246, 0.2);
}

@keyframes chartGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 42px;
        opacity: 1;
    }
}

.pdf-style-btn h3 {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.pdf-style-btn:hover h3 {
    color: #C9A584;
    transform: translateY(-3px);
    text-shadow: 0 0 20px rgba(201, 165, 132, 0.3);
}

.pdf-style-btn.selected h3 {
    color: #C9A584;
}

.pdf-style-btn p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
}

.pdf-style-btn:hover p {
    color: #d0d0d0;
}

/* Темы для превью при наведении */
body {
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.container {
    transition: background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
}

h1, h2 {
    transition: color 0.5s ease, font-family 0.5s ease;
}

.generate-btn {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

body.theme-sprint {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

body.theme-sprint .container {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(100, 100, 100, 0.6);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

body.theme-sprint h1,
body.theme-sprint h2 {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

body.theme-sprint .generate-btn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    box-shadow: 0 8px 25px rgba(100, 100, 100, 0.3);
}

body.theme-roadmap {
    background: linear-gradient(135deg, #0c1e3f 0%, #1e3a8a 50%, #3b82f6 100%);
}

body.theme-roadmap .container {
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 25px 70px rgba(59, 130, 246, 0.3);
}

body.theme-roadmap h1 {
    color: #1e3a8a;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

body.theme-roadmap .generate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

body.theme-report {
    background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #22c55e 100%);
}

body.theme-report .container {
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 25px 70px rgba(34, 197, 94, 0.3);
}

body.theme-report h1 {
    color: #14532d;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

body.theme-report .generate-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* Анимация клика на кнопку стиля */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.pdf-style-btn.clicked::after {
    animation: ripple 0.6s ease-out;
}

@media (max-width: 768px) {
    .pdf-style-selector {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pdf-style-btn {
        min-height: 260px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pdf-style-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Уведомление о выборе стиля */
.style-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #C9A584 0%, #B08968 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(201, 165, 132, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.style-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.style-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    animation: rotateIn 0.5s ease;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
    }
    to {
        transform: rotate(0) scale(1);
    }
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.notification-text strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .style-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
    }
}
