* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    gap: 0;
}

.container {
    flex: 1;
    background: #ffffff;
    padding: 30px 40px;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    padding-left: 15px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.form-section {
    margin-bottom: 30px;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1e293b;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

.experience-item, .education-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.experience-item:hover, .education-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.add-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}



.button-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.download-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pdf-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.word-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.word-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}

.cv-preview {
    flex: 1;
    background: #f8fafc;
    padding: 40px;
    overflow-y: auto;
}

.cv-preview-inner {
    background: white;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    min-height: 100%;
}

.cv-content {
    font-family: 'Georgia', serif;
}

.cv-header {
    border-bottom: 3px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.cv-header h1 {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    margin-bottom: 10px;
    text-align: left;
}

.cv-header-text {
    flex: 1;
    text-align: left;
}

.cv-contact {
    color: #666;
    font-size: 14px;
    text-align: left;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-section h2 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.cv-item {
    margin-bottom: 15px;
}

.cv-item h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.cv-item .date {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.cv-item p {
    color: #444;
    line-height: 1.6;
    margin-top: 5px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.remove-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Style Selector */
.style-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 1400px) {
    .style-selector {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .style-selector {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .style-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

.style-option {
    cursor: pointer;
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.style-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
}

.style-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.style-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.classic-preview {
    background: linear-gradient(to bottom, #2c3e50 30%, #fff 30%);
}

.minimal-preview {
    background: linear-gradient(to bottom, #1a1a1a 20%, #fff 20%);
}

.professional-preview {
    background: linear-gradient(135deg, #34495e 40%, #fff 40%);
}

.elegant-preview {
    background: linear-gradient(to bottom, #6c5b7b 25%, #fff 25%);
}

.timeline-preview {
    background: linear-gradient(to right, #fff 45%, #5a7a9b 45%, #5a7a9b 55%, #fff 55%);
}

.sidebar-dark-preview {
    background: linear-gradient(to right, #2c3e50 35%, #fff 35%);
}

.presentation-preview {
    background: linear-gradient(to bottom, #5a7a9b 30%, #f5f7fa 30%, #f5f7fa 50%, #fff 50%);
}

.corporate-preview {
    background: linear-gradient(to right, #2c3e50 32%, #fff 32%);
    border-right: 4px solid #5a7a9b;
}

.executive-preview {
    background: linear-gradient(to bottom, #fff 25%, #1a1a1a 25%, #1a1a1a 27%, #fff 27%);
}

.manager-preview {
    background: linear-gradient(to bottom, #4a5568 35%, #f7fafc 35%, #f7fafc 60%, #fff 60%);
}

.style-option span {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}


/* Section header with toggle */
.section-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-with-toggle h2 {
    margin-bottom: 0;
}

/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.toggle-switch input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked::before {
    left: 27px;
}

.toggle-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Skills and interests input groups */
.skills-input-group,
.interests-input-group,
.certifications-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.skills-input-group input,
.interests-input-group input,
.certifications-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.add-item-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Tags display */
.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tag-item.interest-item {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tag-item button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tag-item button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Photo upload section */
.photo-upload-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 48px;
    color: #cbd5e1;
}

.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.remove-photo-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* CV Photo */
.cv-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    display: block;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
}

.sidebar-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Donation section */
.donation-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    border: 2px solid #fbbf24;
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    margin-bottom: 15px;
}

.donation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.donation-text {
    color: #92400e;
    font-size: 14px;
    margin: 0;
}

.gdpr-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.gdpr-info p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Orientation Notification */
.orientation-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.orientation-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.orientation-icon {
    font-size: 24px;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

.orientation-notification-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.orientation-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.orientation-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-modal {
    text-align: center;
}

.welcome-header h2 {
    color: #1e293b !important;
    margin-bottom: 20px;
    font-size: 1.8em;
    border: none !important;
    padding: 0 !important;
}

.welcome-header h2::before {
    display: none;
}

.welcome-body {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-body p {
    margin-bottom: 15px;
    font-size: 15px;
}

.welcome-body p strong {
    color: #1e293b;
    font-size: 18px;
}

.welcome-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 20px auto;
    max-width: 500px;
}

.welcome-features li {
    padding: 12px 15px;
    font-size: 15px;
    color: #334155;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.welcome-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.welcome-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Photo editor modal */
.photo-editor-modal {
    max-width: 800px;
}

.photo-editor-modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.photo-editor-container {
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.photo-editor-container img {
    max-width: 100%;
    display: block;
}

.photo-editor-controls {
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-weight: 600;
}

.control-group input[type="range"] {
    width: 100%;
    margin: 0;
    padding: 0;
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.editor-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.editor-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.editor-btn.reset-btn {
    background: #ef4444;
}

.editor-btn.reset-btn:hover {
    background: #dc2626;
}

.photo-editor-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cancel-btn {
    background: #94a3b8;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #64748b;
}

.apply-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 10;
}

.close:hover {
    color: #475569;
}

.close:active {
    color: #1e293b;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-contact {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #764ba2;
}

.footer-icon {
    margin-right: 5px;
}

.footer-info {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .container {
        max-width: 100%;
    }
    
    .cv-preview {
        padding: 20px;
    }
    
    .cv-preview-inner {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .style-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-upload-section {
        flex-direction: column;
        text-align: center;
    }
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .cv-preview {
        width: 100%;
        padding: 20px;
        min-height: 500px;
    }
    
    .cv-preview-inner {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .style-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .container {
        padding: 15px;
        overflow-y: visible;
    }
    
    h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    /* Style selector mobile */
    .style-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .style-option {
        padding: 8px;
    }
    
    .style-preview {
        height: 50px;
        margin-bottom: 8px;
    }
    
    .style-option span {
        font-size: 11px;
    }
    
    /* Form inputs mobile */
    input, textarea {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .experience-item, .education-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    /* Photo upload mobile */
    .photo-upload-section {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .photo-preview {
        width: 100px;
        height: 100px;
    }
    
    .photo-placeholder {
        font-size: 36px;
    }
    
    .photo-controls {
        width: 100%;
    }
    
    .upload-btn, .remove-photo-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Skills and interests mobile */
    .skills-input-group,
    .interests-input-group,
    .certifications-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-item-btn {
        width: 100%;
        padding: 12px;
    }
    
    .tag-item {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    /* Buttons mobile */
    .add-btn, .remove-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .download-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Toggle switch mobile */
    .section-header-with-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .toggle-switch {
        width: 100%;
        justify-content: space-between;
    }
    
    /* CV Preview mobile */
    .cv-preview {
        padding: 15px;
        min-height: 400px;
    }
    
    .cv-preview-inner {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .cv-content {
        font-size: 13px;
    }
    
    .cv-header h1 {
        font-size: 1.5em !important;
    }
    
    .cv-section h2 {
        font-size: 1.1em;
    }
    
    .cv-photo {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Donation section mobile */
    .donation-section {
        padding: 20px 15px;
    }
    
    .donation-btn {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    .donation-text {
        font-size: 13px;
    }
    
    /* Modal mobile */
    .modal-content {
        padding: 25px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .welcome-modal {
        padding: 20px;
    }
    
    .welcome-header h2 {
        font-size: 1.3em !important;
    }
    
    .welcome-body {
        font-size: 14px;
    }
    
    .welcome-features li {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .welcome-btn {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }
    
    /* Photo editor mobile */
    .photo-editor-modal {
        max-width: 95%;
    }
    
    .photo-editor-container {
        max-height: 300px;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .editor-btn {
        width: 100%;
        padding: 12px;
    }
    
    .photo-editor-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn, .apply-btn {
        width: 100%;
        padding: 14px;
    }
    
    /* Footer mobile */
    .site-footer {
        padding: 20px 15px;
    }
    
    .footer-text, .footer-contact, .footer-info {
        font-size: 12px;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.3em;
    }
    
    .style-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .style-preview {
        height: 40px;
    }
    
    .cv-preview-inner {
        padding: 15px 10px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .welcome-features li {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on focus */
    }
    
    .modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .cv-preview, .container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    /* Android Chrome */
    input, textarea {
        font-size: 16px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .main-wrapper {
        flex-direction: row;
    }
    
    .container {
        width: 50%;
        height: 100vh;
        overflow-y: auto;
    }
    
    .cv-preview {
        width: 50%;
        height: 100vh;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .style-option {
        min-height: 80px;
    }
    
    button, .upload-btn, a.donation-btn {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .tag-item button {
        min-width: 30px;
        min-height: 30px;
    }
    
    /* Better spacing for touch */
    .add-btn, .remove-btn {
        margin-top: 15px;
    }
}

/* High DPI displays (Retina, etc.) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cv-preview-inner {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .main-wrapper {
        display: block;
    }
    
    .container {
        display: none;
    }
    
    .cv-preview {
        padding: 0;
        background: white;
        width: 100%;
    }
    
    .cv-preview-inner {
        box-shadow: none;
        padding: 0;
    }
    
    .site-footer {
        display: none;
    }
    
    /* Fix transparent text in PDF */
    h1, h2, h3, h4, h5, h6, p, span, div, li {
        -webkit-text-fill-color: initial !important;
        color: inherit !important;
    }
    
    .cv-header h1 {
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
        background: none !important;
    }
    
    .cv-content * {
        -webkit-text-fill-color: initial !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Można dodać dark mode jeśli potrzebny */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== DEVICE-SPECIFIC STYLES ===== */

/* iOS specific */
.ios-device {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ios-device input,
.ios-device textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 12px;
}

.ios-device .main-wrapper {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Android specific */
.android-device input,
.android-device textarea {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.android-device.keyboard-open .cv-preview {
    display: none;
}

/* Touch device optimizations */
.touch-device button,
.touch-device .style-option,
.touch-device .upload-btn,
.touch-device .tag-item button {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

.touch-device button:active,
.touch-device .style-option:active {
    transform: scale(0.98);
}

/* Mobile device optimizations */
.mobile-device .main-wrapper {
    overflow-x: hidden;
}

.mobile-device .container,
.mobile-device .cv-preview {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.mobile-device .modal-content {
    -webkit-overflow-scrolling: touch;
}

/* Tablet optimizations */
.tablet-device .style-selector {
    grid-template-columns: repeat(4, 1fr);
}

.tablet-device .main-wrapper {
    flex-direction: row;
}

.tablet-device .container {
    width: 50%;
}

.tablet-device .cv-preview {
    width: 50%;
}

/* Landscape mode for mobile */
.mobile-device.landscape .main-wrapper {
    flex-direction: row;
}

.mobile-device.landscape .container {
    width: 45%;
    height: 100vh;
}

.mobile-device.landscape .cv-preview {
    width: 55%;
    height: 100vh;
}

/* Portrait mode for mobile */
.mobile-device.portrait .main-wrapper {
    flex-direction: column;
}

.mobile-device.portrait .container,
.mobile-device.portrait .cv-preview {
    width: 100%;
}

/* Small screen optimizations */
.screen-small .style-selector {
    grid-template-columns: repeat(2, 1fr);
}

.screen-small h1 {
    font-size: 1.4em;
}

/* Medium screen optimizations */
.screen-medium .style-selector {
    grid-template-columns: repeat(3, 1fr);
}

/* Large screen optimizations */
.screen-large .style-selector {
    grid-template-columns: repeat(5, 1fr);
}

/* Standalone PWA mode */
.standalone-mode {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.standalone-mode .container {
    padding-top: calc(20px + env(safe-area-inset-top));
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .modal-content {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}


.project-manager-preview {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 40%, #ecf0f1 40%, #ecf0f1 60%, #3498db 60%, #3498db 62%, white 62%);
    position: relative;
}

.project-manager-preview::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    border: 2px solid #3498db;
}


/* Ukryj pasek nawigacji */
.app-navigation {
    display: none !important;
}

/* Dostosuj marginesy po ukryciu nawigacji */
.app-section {
    margin-top: 0 !important;
}

.main-wrapper {
    padding-top: 0 !important;
}


/* Stopka na samym dole strony - widoczna tylko po przewinięciu */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper,
.app-section {
    flex: 1;
}

.site-footer {
    position: relative;
    margin-top: auto;
}

/* Languages section */
.languages-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.languages-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.language-level-select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.language-level-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.languages-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.language-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.language-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.language-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.language-level-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-level-dots {
    display: flex;
    gap: 4px;
}

.level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.level-dot.filled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.language-level-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.remove-language-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-language-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .languages-input-group {
        flex-direction: column;
    }
    
    .language-level-select {
        min-width: 100%;
    }
    
    .language-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .remove-language-btn {
        width: 100%;
    }
}

/* PDF Confirmation Modal */
#pdfConfirmModal {
    z-index: 10001 !important;
}

.pdf-confirm-modal {
    max-width: 600px;
    padding: 35px;
}

.pdf-confirm-modal h2 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.pdf-confirm-body {
    margin-bottom: 30px;
}

.pdf-confirm-body p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.donation-link-container {
    text-align: center;
    margin: 20px 0 !important;
}

.donation-link {
    display: inline-block !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.donation-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.donation-link:visited {
    color: white !important;
}

.pdf-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.pdf-accept-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.pdf-accept-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin: 0;
}

.pdf-accept-checkbox span {
    user-select: none;
}

.confirm-pdf-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.confirm-pdf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.confirm-pdf-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.confirm-pdf-btn:not(:disabled) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.5);
    }
}

@media (max-width: 768px) {
    .pdf-confirm-modal {
        padding: 25px;
    }
    
    .pdf-confirm-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .confirm-pdf-btn {
        width: 100%;
    }
}

/* Custom Section Styles */
.custom-section-name-group {
    margin-bottom: 15px;
}

.custom-section-name-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #2d3748;
    transition: all 0.3s ease;
}

.custom-section-name-group input:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.custom-items-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-items-input-group input {
    flex: 1;
    margin-bottom: 0;
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .container {
        padding: 20px 15px;
        max-height: none;
    }
    
    h1 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.1em;
        padding-left: 12px;
    }
    
    h2::before {
        width: 3px;
        height: 20px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    input, textarea {
        padding: 12px 14px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .experience-item, .education-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .add-btn, .remove-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .add-item-btn {
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tag-item button {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    /* Photo upload section */
    .photo-upload-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .photo-preview {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .photo-controls {
        width: 100%;
    }
    
    .upload-btn, .remove-photo-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Section header with toggle */
    .section-header-with-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .toggle-switch {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Languages section */
    .languages-input-group {
        flex-direction: column;
    }
    
    .language-level-select {
        width: 100%;
        min-width: 100%;
    }
    
    .language-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .language-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .remove-language-btn {
        width: 100%;
    }
    
    /* CV Preview */
    .cv-preview {
        width: 100%;
        padding: 15px;
        position: relative;
        height: auto;
        min-height: 400px;
    }
    
    .cv-preview-inner {
        padding: 10px;
        max-height: none;
        overflow-y: visible;
    }
    
    .cv-content {
        padding: 20px 15px;
        font-size: 11px;
    }
    
    /* Download button */
    .download-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .button-group {
        margin: 20px 0;
    }
    
    /* Donation section */
    .donation-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .donation-text {
        font-size: 13px;
    }
    
    /* App navigation */
    .app-navigation {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }
    
    .nav-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* Small devices (landscape phones, 481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 25px 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .cv-preview {
        width: 100%;
        height: auto;
        min-height: 500px;
    }
    
    .cv-content {
        padding: 25px 20px;
        font-size: 12px;
    }
    
    .photo-upload-section {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .languages-input-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .language-level-select {
        min-width: 200px;
        flex: 1;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .main-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .container {
        width: 100%;
        padding: 30px;
    }
    
    .cv-preview {
        width: 100%;
        height: auto;
        min-height: 600px;
        padding: 20px;
    }
    
    .cv-content {
        padding: 30px 25px;
        font-size: 13px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .experience-item, .education-item {
        padding: 18px;
    }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        padding: 35px;
    }
    
    .cv-preview {
        padding: 20px;
    }
    
    .cv-content {
        padding: 35px 30px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .main-wrapper {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .container {
        max-width: 700px;
    }
    
    .cv-preview {
        max-width: 900px;
    }
}

/* Landscape orientation specific */
@media (max-height: 600px) and (orientation: landscape) {
    .main-wrapper {
        flex-direction: row;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        height: auto;
        max-height: none;
    }
    
    .cv-preview {
        height: auto;
        min-height: 100vh;
    }
    
    .cv-preview-inner {
        max-height: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    input, textarea, select, button {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .tag-item button {
        min-width: 32px;
        min-height: 32px;
        padding: 8px;
    }
    
    .remove-btn {
        min-width: 36px;
        min-height: 36px;
    }
    
    .toggle-slider {
        width: 48px;
        height: 26px;
    }
    
    .toggle-slider:before {
        width: 20px;
        height: 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cv-content {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .container,
    .app-navigation,
    .button-group,
    .donation-section,
    .form-section {
        display: none !important;
    }
    
    .cv-preview {
        width: 100%;
        height: auto;
        box-shadow: none;
        padding: 0;
    }
    
    .cv-content {
        padding: 0;
        box-shadow: none;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for CV generator for better PDF output */
    body {
        background: #ffffff;
    }
}

/* ===== MODAL RESPONSIVENESS ===== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .welcome-modal {
        padding: 25px 20px;
    }
    
    .welcome-header h2 {
        font-size: 1.3em;
    }
    
    .welcome-features {
        font-size: 14px;
    }
    
    .welcome-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
    
    .pdf-confirm-modal {
        padding: 25px 20px;
    }
    
    .pdf-confirm-modal h2 {
        font-size: 1.4em;
    }
    
    .pdf-confirm-body p {
        font-size: 14px;
    }
    
    .pdf-confirm-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .confirm-pdf-btn {
        width: 100%;
        padding: 14px;
    }
    
    .pdf-accept-checkbox {
        font-size: 15px;
    }
    
    /* Photo editor modal */
    .photo-editor-modal {
        width: 95%;
        padding: 20px;
    }
    
    .photo-editor-container {
        max-height: 300px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .editor-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        font-size: 12px;
        padding: 8px;
    }
    
    .photo-editor-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .photo-editor-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .close {
        font-size: 32px;
        top: 10px;
        right: 15px;
    }
    
    .editor-btn {
        flex: 1 1 100%;
        font-size: 13px;
    }
}

/* Review Modal Styles */
.review-modal {
    max-width: 500px;
}

.review-modal-body {
    margin: 20px 0;
}

.review-modal-body p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-form {
    margin-top: 25px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.review-form input[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    text-align: right;
    color: #64748b;
    font-size: 12px;
    margin-top: 5px;
}

.review-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.cancel-review-btn,
.submit-review-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-review-btn {
    background: #e2e8f0;
    color: #475569;
}

.cancel-review-btn:hover {
    background: #cbd5e1;
}

.submit-review-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-review-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    gap: 5px;
    font-size: 32px;
    margin: 10px 0;
}

.star {
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.star.active {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Review card with stars */
.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 16px;
}

.review-rating .star-filled {
    color: #fbbf24;
}

.review-rating .star-empty {
    color: #cbd5e1;
}
