* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.announcement-bar {
  width: 100%;
  background: #eaf2ff;  /* Soft blue */
  color: #1e3a8a;
  padding: 8px 40px;
  font-size: 14px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #c7d7ff;
}

.announcement-bar strong {
  color: #2563eb;
}

.announcement-bar a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  margin-left: 6px;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 6px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #1e3a8a;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom right, #eff6ff, #ffffff, #dbeafe);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.container {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, #2563eb, #1e40af);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-file {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.subtitle {
    color: #4b5563;
    font-size: 0.875rem;
    padding: 0 1rem;
    word-wrap: break-word;
}

/* Ad Banners */
.ad-banner {
    max-width: 56rem;
    margin: 0 auto 2rem;
    width: 100%;
    padding: 0 1rem;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.ad-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.ad-subtext {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

#bottomAd {
    margin-top: 3rem;
}

/* Upload Section */
.upload-section {
    max-width: 42rem;
    margin: 0 auto 2rem;
    width: 100%;
    padding: 0 1rem;
}

.upload-box {
    border: 3px dashed #93c5fd;
    border-radius: 1.5rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.upload-box:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
    margin: 0 auto 1.5rem;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.upload-text {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 0.813rem;
    padding: 0 0.5rem;
}

.upload-button {
    padding: 0.625rem 2rem;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-size: 0.875rem;
}

.upload-button:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
}

/* Processing */
.processing-section {
    text-align: center;
    padding: 5rem 0;
}

.loader-icon {
    width: 3rem;
    height: 3rem;
    color: #2563eb;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.processing-text {
    color: #374151;
    font-size: 1rem;
}

.processing-subtext {
    color: #6b7280;
    font-size: 0.813rem;
    margin-top: 0.5rem;
}

/* Main Content */
.main-content {
    display: grid;
    gap: 2rem;
    width: 100%;
}

/* Controls Panel */
.controls-panel {
    order: 2;
    width: 100%;
}

.controls-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 2px solid #bfdbfe;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.controls-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* File Info */
.file-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe;
}

.file-label {
    font-size: 0.813rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.file-name {
    color: #1e3a8a;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.813rem;
}

.file-pages {
    font-size: 0.813rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

/* Format Selection */
.format-section {
    margin-bottom: 1.5rem;
}

.section-label {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.format-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.813rem;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    cursor: pointer;
}

.format-btn:hover {
    background: #e5e7eb;
}

.format-btn.active {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Page Range */
.range-section {
    margin-bottom: 1.5rem;
}

.range-input-group {
    display: flex;
    gap: 0.5rem;
}

.range-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    color: #111827;
    font-size: 0.813rem;
}

.range-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.range-input::placeholder {
    color: #9ca3af;
}

.apply-btn {
    padding: 0.5rem 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.813rem;
    font-weight: 500;
}

.apply-btn:hover {
    background: #1d4ed8;
}

.range-hint {
    font-size: 0.688rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.813rem;
    font-weight: 500;
}

.action-btn:hover {
    background: #e5e7eb;
}

/* Selected Count */
.selected-count {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #2563eb;
    border-radius: 0.75rem;
    color: white;
    text-align: center;
}

.count-number {
    font-size: 1.875rem;
    font-weight: bold;
}

.count-label {
    font-size: 0.813rem;
    color: #bfdbfe;
}

/* Download Button */
.download-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.download-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Reset Button */
.reset-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    color: #4b5563;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.813rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-btn:hover {
    color: #1d4ed8;
}

.reset-icon {
    width: 0.938rem;
    height: 0.938rem;
}

/* Pages Section */
.pages-section {
    order: 1;
    width: 100%;
}

/* Messages */
.message {
    margin-bottom: 1.5rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 2px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.error-message {
    background: #fef2f2;
    border-color: #fca5a5;
}

.success-message {
    background: #f0fdf4;
    border-color: #86efac;
}

.message-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.error-message .message-icon {
    color: #dc2626;
}

.success-message .message-icon {
    color: #16a34a;
}

.message-text {
    font-size: 0.813rem;
}

.error-message .message-text {
    color: #b91c1c;
}

.success-message .message-text {
    color: #15803d;
}

/* Pages Grid */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.page-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #d1d5db;
}

.page-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.page-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
    box-shadow: 0 0 0 4px #3b82f6;
}

.page-image {
    width: 100%;
    height: auto;
    background: white;
    display: block;
}

.page-checkbox {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    color: #9ca3af;
}

.page-card.selected .page-checkbox {
    background: #2563eb;
    color: white;
}

.check-icon {
    width: 0.938rem;
    height: 0.938rem;
}

.page-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 0.5rem 0.75rem;
}

.page-number {
    color: white;
    font-weight: 500;
    font-size: 0.688rem;
}

/* Description Section */
.description-section {
    max-width: 64rem;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    width: 100%;
}

.description-content {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.description-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.step-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.step-number {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(to bottom right, #2563eb, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.875rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.step-text {
    color: #6b7280;
    font-size: 0.813rem;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.features-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.feature-item:hover {
    background: #f9fafb;
}

.feature-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-title {
    font-size: 0.938rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.feature-text {
    color: #6b7280;
    font-size: 0.813rem;
    line-height: 1.5;
}

/* Extended Content Styles */
.extended-content {
    margin-top: 2rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
}

.content-block {
    margin-bottom: 2rem;
}

.content-heading {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.content-paragraph {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
    word-wrap: break-word;
}

.content-paragraph strong {
    color: #1e3a8a;
    font-weight: 600;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border-left: 4px solid #2563eb;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.footer-text {
    color: #4b5563;
    font-size: 0.813rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.813rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer-separator {
    color: #9ca3af;
    font-size: 0.813rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .wrapper {
        padding: 3rem 1rem;
    }

    .icon-wrapper {
        width: 4rem;
        height: 4rem;
    }

    .icon-file {
        width: 2rem;
        height: 2rem;
    }

    .title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .upload-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }

    .upload-title {
        font-size: 1.5rem;
    }

    .upload-text {
        font-size: 1rem;
    }

    .upload-button {
        font-size: 1rem;
    }

    .loader-icon {
        width: 4rem;
        height: 4rem;
    }

    .processing-text {
        font-size: 1.125rem;
    }

    .processing-subtext {
        font-size: 0.875rem;
    }

    .controls-card {
        padding: 1.5rem;
    }

    .controls-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .controls-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .file-info {
        padding: 1rem;
    }

    .file-name {
        font-size: 1rem;
    }

    .file-pages {
        font-size: 0.875rem;
    }

    .section-label {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .format-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .range-input {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .apply-btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .action-btn {
        font-size: 0.875rem;
    }

    .count-number {
        font-size: 1.875rem;
    }

    .count-label {
        font-size: 0.875rem;
    }

    .download-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .btn-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .reset-btn {
        font-size: 0.875rem;
    }

    .message {
        padding: 1rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .page-checkbox {
        width: 2rem;
        height: 2rem;
    }

    .check-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .page-label {
        padding: 0.75rem;
    }

    .page-number {
        font-size: 0.875rem;
    }

    .description-content {
        padding: 2.5rem 2rem;
    }

    .description-title {
        font-size: 1.75rem;
    }

    .step-text {
        font-size: 0.938rem;
    }

    .feature-text {
        font-size: 0.875rem;
    }

    .content-heading {
        font-size: 1.5rem;
    }

    .content-paragraph {
        font-size: 1rem;
    }

    .faq-question {
        font-size: 1.125rem;
    }

    .faq-answer {
        font-size: 0.938rem;
    }

    .footer-text {
        font-size: 0.875rem;
    }

    .footer-link {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .pages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
    }

    .controls-panel {
        order: 1;
    }

    .controls-card {
        position: sticky;
        top: 1.5rem;
    }

    .pages-section {
        order: 2;
    }

    .description-title {
        font-size: 2rem;
    }

    .content-heading {
        font-size: 1.75rem;
    }

    .content-paragraph {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1280px) {
    .title {
        font-size: 3rem;
    }

    .description-title {
        font-size: 2.25rem;
    }

    .content-heading {
        font-size: 2rem;
    }
}

.faq-separator {
  width: 80%;
  height: 3px;
  margin: 60px auto 30px auto;
  background: linear-gradient(to right, transparent, #2563eb, transparent);
  border-radius: 5px;
}



body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  line-height: 1.75;
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.blog-header {
  text-align: center;
  padding: 50px 20px 30px;
}

.blog-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Content */
.blog-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.blog-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 15px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.blog-content p {
  margin-bottom: 18px;
  color: #374151;
}

.blog-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.blog-content li {
  margin-bottom: 10px;
}

/* Blockquote */
.blog-content blockquote {
  margin: 30px 0;
  padding: 20px;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  color: #1e3a8a;
}

/* CTA */
.blog-cta {
  margin-top: 40px;
  text-align: center;
}

.blog-cta a {
  display: inline-block;
  padding: 5px 15px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.blog-cta a:hover {
  background: #1d4ed8;
}


.blog-footer {
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9rem;
  color: #9ca3af;
}


@media (max-width: 600px) {
  .blog-content {
    padding: 25px;
  }

  .blog-header h1 {
    font-size: 1.9rem;
  }
}

.message {
    max-width: 100%;
    overflow: hidden;
}

.message-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}


.pages-grid {
    max-width: 100%;
}

.page-card {
    max-width: 100%;
    aspect-ratio: 3/4;
}

.page-image {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}


.pages-section {
    max-width: 100%;
    overflow: hidden;
}


.container,
.wrapper,
.main-content,
.controls-panel {
    max-width: 100%;
    overflow-x: hidden;
}


.description-section {
    padding: 0 0.75rem;
}

.description-content {
    max-width: 100%;
}

@media (max-width: 640px) {
    .pages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .wrapper {
        padding: 1.5rem 0.75rem;
        overflow-x: hidden;
    }
    
    .message {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .page-card {
        max-height: 250px;
    }
    
    .page-card.selected {
        box-shadow: 0 0 0 3px #3b82f6;
    }
    
    .title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .subtitle {
        padding: 0 0.5rem;
        word-wrap: break-word;
    }

    .description-section {
        padding: 0 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .pages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .page-card {
        max-height: 200px;
    }
    
    .format-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
    }
}