:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 800 400"><rect fill="%234361ee" width="800" height="400"/><path fill="%233a0ca3" fill-opacity="0.2" d="M0 192L26.7 202.7C53.3 213 107 235 160 234.7C213.3 235 267 213 320 192C373.3 171 427 149 480 160C533.3 171 587 213 640 213.3C693.3 213 747 171 773.3 149.3L800 128L800 401L773.3 401C746.7 401 693 401 640 401C586.7 401 533 401 480 401C426.7 401 373 401 320 401C266.7 401 213 401 160 401C106.7 401 53 401 27 401L0 401Z"></path></svg>') center/cover no-repeat;
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.converter-tool {
    padding: 60px 0;
}

.watermark-tool {
    padding: 60px 0;
}

.crop-tool {
    padding: 60px 0;
}

.viewer-tool {
    padding: 60px 0;
}

.editor-tool {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary);
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    background-color: white;
    transition: all 0.3s ease;
}

.upload-area.active {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-text {
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #3ab7d8;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    gap: 10px;
}

.files-list {
    margin-top: 30px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: move;
}

.file-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-icon {
    margin-right: 15px;
    color: var(--primary);
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.file-status {
    margin-left: 15px;
    font-weight: 500;
}

.file-actions {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.status-pending {
    color: #666;
}

.status-converting {
    color: #ff9800;
}

.status-processing {
    color: #ff9800;
}

.status-completed {
    color: #4caf50;
}

.status-error {
    color: #f44336;
}

.conversion-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.split-controls {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.grid-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.grid-size-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-size-input input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    text-align: center;
}

.preview-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.preview-title {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--secondary);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.preview-grid {
    display: inline-grid;
    gap: 2px;
    margin: 20px 0;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.grid-cell {
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px dashed rgba(67, 97, 238, 0.3);
}

.results-section {
    margin-top: 40px;
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.download-all {
    display: flex;
    align-items: center;
}

.download-icon {
    margin-right: 8px;
}

.converted-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.converted-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.converted-preview {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.converted-preview img,
.converted-preview video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.converted-details {
    padding: 15px;
}

.converted-name {
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-all;
}

.converted-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.converted-actions {
    display: flex;
    justify-content: space-between;
}

.base64-code {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
    word-break: break-all;
}

.split-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.split-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.split-preview {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.split-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.split-details {
    padding: 15px;
}

.split-name {
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-all;
    font-size: 0.9rem;
}

.split-actions {
    display: flex;
    justify-content: center;
}

.watermark-settings {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.watermark-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.watermark-toggle input {
    margin-right: 10px;
}

.watermark-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.watermark-option {
    margin-bottom: 15px;
}

.watermark-option label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.watermark-option input,
.watermark-option select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.watermark-preview {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    background: #f9f9f9;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watermarked-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.watermarked-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.watermarked-preview {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.watermarked-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.watermarked-details {
    padding: 15px;
}

.watermarked-name {
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-all;
}

.watermarked-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.watermarked-actions {
    display: flex;
    justify-content: space-between;
}

.crop-container {
    display: none;
    margin-top: 30px;
}

.crop-interface {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crop-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    padding: 20px;
    min-height: 400px;
    overflow: hidden;
}

#imagePreview {
    max-width: 100%;
    max-height: 400px;
    display: none;
}

.crop-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.aspect-ratio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.aspect-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aspect-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.custom-size {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.custom-size input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
}

.crop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.advanced-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.advanced-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.advanced-btn:hover {
    background: #f0f0f0;
}

.rotation-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}

.rotation-controls input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cropped-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 300px;
}

#croppedResult {
    max-width: 100%;
    max-height: 300px;
    display: none;
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.format-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.format-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quality-control {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
}

.quality-control input {
    width: 100px;
}

.pdf-preview {
    margin-top: 30px;
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.pdf-preview h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.pdf-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-download {
    text-align: center;
    margin-top: 20px;
}

.format-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.format-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.jpg { background: #ff6b35; }
.png { background: #4ecdc4; }
.webp { background: #45b7d1; }
.avif { background: #9b59b6; }
.heic { background: #e74c3c; }
.bmp { background: #96ceb4; }
.tiff { background: #feca57; }

.analysis-results {
    display: none;
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f7fa 100%);
    border-radius: 15px;
    border: 2px solid #e3f2fd;
}

.batch-progress {
    background: #f0f9ff;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: none;
}

.batch-progress-bar {
    width: 100%;
    height: 8px;
    background: #e3f2fd;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.batch-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.image-item {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.image-item.processing {
    border-color: #ff9800;
    background: #fff8e1;
}

.image-item.completed {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.image-item.error {
    border-color: #f44336;
    background: #ffebee;
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.image-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.info-item {
    text-align: center;
    padding: 10px;
    background: #f8f9ff;
    border-radius: 8px;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.info-label {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.download-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.download-all-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin: 20px 0;
    width: 100%;
    transition: all 0.3s ease;
}

.results {
    display: none;
    margin-top: 30px;
}

.format-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
}

#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.exif-data-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.exif-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.exif-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.exif-tab.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.exif-tab-content {
    display: none;
}

.exif-tab-content.active {
    display: block;
}

.exif-table {
    width: 100%;
    border-collapse: collapse;
}

.exif-table th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--secondary);
}

.exif-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.exif-table tr:last-child td {
    border-bottom: none;
}

.exif-table tr:hover {
    background-color: #f9f9f9;
}

.image-preview {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.preview-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 20px;
}

.preview-info {
    flex: 1;
}

.editor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.editor-preview {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.editor-controls {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

#previewImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.control-group {
    margin-bottom: 25px;
}

.control-group h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.slider-container {
    margin-bottom: 15px;
}

.slider-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.slider-container input {
    width: 100%;
}

.editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.editor-actions .btn {
    flex: 1;
    min-width: 120px;
}

.advanced-filter-controls {
    background: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    display: none;
}

.advanced-filter-controls.active {
    display: block;
}

.overlay-preview {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin: 10px 0;
    object-fit: cover;
}

.blend-mode-select {
    width: 100%;
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    margin: 10px 0;
}

.seo-content {
    padding: 60px 0;
}

.seo-content h2 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.seo-content p {
    margin-bottom: 15px;
    max-width: 800px;
}

.faq {
    padding: 60px 0;
    background-color: var(--light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 20px;
    max-height: 300px;
}

footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .conversion-controls {
        flex-direction: column;
    }
    
    .watermark-controls {
        flex-direction: column;
    }
    
    .crop-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .viewer-controls {
        flex-direction: column;
    }
    
    .grid-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-status, .file-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pdf-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .watermark-options {
        grid-template-columns: 1fr;
    }
    
    .converted-files {
        grid-template-columns: 1fr;
    }
    
    .custom-size {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-size input {
        width: 100%;
        max-width: 200px;
    }
    
    .download-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .rotation-controls {
        flex-direction: column;
    }
    
    .format-options {
        flex-wrap: wrap;
    }
    
    .image-info {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
    
    .format-badges {
        justify-content: center;
    }
    
    .image-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .preview-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .exif-tabs {
        flex-wrap: wrap;
    }
    
    .exif-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .editor-container {
        flex-direction: column;
    }
    
    .editor-actions {
        flex-direction: column;
    }
    
    .editor-actions .btn {
        width: 100%;
    }
}