﻿:root {
    --primary: #2D3E50;
    --primary-light: #3A5167;
    --accent: #FF6B6B;
    --accent-soft: #FFE5E5;
    --success: #10B981;
    --success-soft: #D1FAE5;
    --surface: #FAFBFC;
    --surface-elevated: #FFFFFF;
    --text-primary: #1A1F25;
    --text-secondary: #5F6C7B;
    --text-tertiary: #94A3B8;
    --border: #E5E9F0;
}

.pool-content {
    padding: 2rem;
    min-height: calc(100vh - 72px - 80px);
    background: var(--surface);
}

@media (max-width: 768px) {
    .pool-content {
        min-height: calc(100vh - 64px - 80px);
    }
}

@media (max-width: 576px) {
    .pool-content {
        min-height: calc(100vh - 60px - 80px);
    }
}
/* UI Blocker Overlay for PDF Merge */
    .ui-blocker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
    cursor: not-allowed;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.ui-blocker-overlay.active {
    display: flex;
}

.ui-blocker-overlay * {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.ui-blocker-content {
    background: var(--surface-elevated);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(45, 62, 80, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.ui-blocker-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.ui-blocker-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ui-blocker-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pool-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface-elevated);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.toolbar-left h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    gap: 0.75rem;
}

.btn-upload {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-color: var(--success);
    color: white;
}

    .btn-upload:hover {
        background: linear-gradient(135deg, #059669 0%, var(--success) 100%);
        border-color: var(--success);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

/* Upload Modal Styles */
.upload-modal .modal-content {
    border-radius: 16px;
    border: none;
}

.upload-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.upload-modal .modal-body {
    padding: 1.5rem;
}

.upload-modal .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-modal .form-control,
.upload-modal .form-select {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.75rem;
}

    .upload-modal .form-control:focus,
    .upload-modal .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(45, 62, 80, 0.1);
    }

.file-dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--surface);
    cursor: pointer;
}

    .file-dropzone:hover {
        border-color: var(--primary);
        background: var(--surface-elevated);
    }

    .file-dropzone.dragover {
        border-color: var(--success);
        background: var(--success-soft);
    }

    .file-dropzone.has-file {
        border-color: var(--success);
        background: var(--success-soft);
    }

.file-dropzone-icon {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.file-dropzone-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-dropzone-hint {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-elevated);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-preview-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-remove-file {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-remove-file:hover {
        background: #e03e3e;
    }

.toolbar-right .btn {
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toolbar-right .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
}

    .toolbar-right .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 62, 80, 0.4);
    }
.toolbar-right .btn-info {
    background: linear-gradient(135deg, #3A8DFF 0%, #1E6FE3 100%);
    border-color: #1E6FE3;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .toolbar-right .btn-info:hover {
        background: linear-gradient(135deg, #1E6FE3 0%, #3A8DFF 100%);
        border-color: #1E6FE3;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 111, 227, 0.45);
    }

/* BUTTON 2 — Upload New Document (Green Gradient) */
.toolbar-right .btn-warning {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%); /* green gradient */
    border-color: #059669;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .toolbar-right .btn-warning:hover {
        background: linear-gradient(135deg, #059669 0%, #10B981 100%); /* reverse gradient */
        border-color: #059669;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45); /* green shadow */
    }


.toolbar-right .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

    .toolbar-right .btn-outline-danger:hover {
        background: #dc3545;
        border-color: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

.badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
}

.pool-item {
    background: var(--surface-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    animation: fadeInUp 0.4s ease-out;
    cursor: move;
    position: relative;
    overflow: hidden;
}

    .pool-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #5B6B8C 0%, #FF6B6B 100%);
        transform: translateY(-50%);
        transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pool-item.dragging {
        opacity: 0.5;
        transform: scale(0.95);
    }

    .pool-item.drag-over {
        border-top: 3px solid var(--primary);
        margin-top: 1rem;
    }

    .pool-item:hover {
        background: #F8FAFC;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(45, 62, 80, 0.1);
        border: 1px solid var(--primary);
        border-left: 4px solid transparent;
    }

        .pool-item:hover::before {
            height: 100%;
        }

    .pool-item.slide-out {
        animation: slideOut 0.3s ease-out forwards;
    }

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        height: 0;
    }
}

.pool-item-info {
    flex: 1;
}

.pool-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pool-item-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

    .pool-item-meta i {
        margin-right: 0.5rem;
        color: var(--text-secondary);
    }

.pool-item-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-remove:hover {
        background: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

.btn-view-pool {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-view-pool:hover {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 62, 80, 0.4);
    }

.drag-handle {
    cursor: grab;
    color: #6c757d;
    padding: 0.5rem;
    margin-right: 1rem;
    user-select: none;
}

    .drag-handle:active {
        cursor: grabbing;
    }

.pool-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.info-banner {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #155724;
}

    .info-banner i {
        font-size: 1.25rem;
    }

.empty-pool {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

    .empty-pool i {
        font-size: 5rem;
/*        color: var(--text-tertiary);
*/    }

/* Create PDF Modal Styles */
.create-pdf-modal .modal-content {
    border-radius: 16px;
    border: none;
}

.create-pdf-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.create-pdf-modal .modal-body {
    padding: 1.5rem;
}

/* Quill Editor Styles */
#quillEditor {
    background: var(--surface-elevated);
    border-radius: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#quillEditor .ql-container {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 300px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#quillEditor .ql-editor {
    min-height: 300px;
}

#quillEditor .ql-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    padding: 0.75rem;
}

#quillEditor .ql-toolbar .ql-stroke {
    stroke: var(--text-primary);
}

#quillEditor .ql-toolbar .ql-fill {
    fill: var(--text-primary);
}

#quillEditor .ql-toolbar button:hover,
#quillEditor .ql-toolbar button.ql-active {
    color: var(--primary);
}

#quillEditor .ql-toolbar button:hover .ql-stroke,
#quillEditor .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary);
}

#quillEditor .ql-toolbar button:hover .ql-fill,
#quillEditor .ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary);
}

#quillEditor .ql-editor.ql-blank::before {
    color: var(--text-tertiary);
    font-style: italic;
}

.ql-toolbar.ql-snow {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .pool-content {
        padding: 1rem;
    }

    .pool-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .toolbar-left {
        width: 100%;
    }

    .toolbar-right {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    /* Hide button text, show only icons on mobile */
    .toolbar-right .btn {
        font-size: 0;
        padding: 0.5rem;
        min-width: 38px;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .toolbar-right .btn i {
        font-size: 1.1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }

    .toolbar-right .btn span:not(.pool-count) {
        display: none;
    }

    .pool-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .pool-item-info {
        width: 100%;
    }

    .pool-item-actions {
        width: 100%;
        justify-content: flex-end;
        flex-direction: row;
        gap: 0.5rem;
        align-self: flex-end;
        margin-left: auto;
    }

    /* Hide button text, show only icons on mobile for item buttons */
    .pool-item-actions .btn,
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        font-size: 0;
        padding: 0.65rem;
        min-width: 40px;
        width: 40px;
        height: 40px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .pool-item-actions .btn i,
    .pool-item-actions .btn-view-pool i,
    .pool-item-actions .btn-remove i {
        font-size: 1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        color: white;
    }

    .pool-item-actions .btn span,
    .pool-item-actions .btn-view-pool span,
    .pool-item-actions .btn-remove span {
        display: none;
    }

    /* Hide text nodes in buttons */
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        color: transparent;
    }

    .pool-item-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .info-banner {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .empty-pool {
        padding: 2rem 1rem;
    }

    .empty-pool i {
        font-size: 4rem;
    }

    .empty-pool h4 {
        font-size: 1.2rem;
    }

    .empty-pool p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .pool-content {
        padding: 0.75rem;
    }

    .pool-toolbar {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .toolbar-left h4 {
        font-size: 1rem;
    }

    .toolbar-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .toolbar-right .btn {
        min-width: 38px;
        width: 38px;
        height: 38px;
        padding: 0.5rem;
        font-size: 0;
        flex: 0 0 38px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .toolbar-right .btn i {
        font-size: 1.1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }

    .toolbar-right .btn span:not(.pool-count) {
        display: none;
    }

    .pool-item {
        padding: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .pool-item-title {
        font-size: 1rem;
    }

    .pool-item-meta {
        font-size: 0.8rem;
    }

    .pool-item-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-end;
        align-self: flex-end;
        margin-left: auto;
    }

    .pool-item-actions .btn,
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        min-width: 40px;
        width: 40px;
        height: 40px;
        padding: 0.65rem;
        font-size: 0;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .pool-item-actions .btn i,
    .pool-item-actions .btn-view-pool i,
    .pool-item-actions .btn-remove i {
        font-size: 1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        color: white;
    }

    .pool-item-actions .btn span,
    .pool-item-actions .btn-view-pool span,
    .pool-item-actions .btn-remove span {
        display: none;
    }

    /* Hide text nodes in buttons */
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        color: transparent;
    }

    .drag-handle {
        margin-right: 0.5rem;
        padding: 0.4rem;
    }

    .pool-item-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-right: 0.75rem;
    }

    .info-banner {
        padding: 0.65rem;
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-banner i {
        font-size: 1.1rem;
    }

    .empty-pool {
        padding: 1.5rem 0.75rem;
    }

    .empty-pool i {
        font-size: 3.5rem;
    }

    .empty-pool h4 {
        font-size: 1.1rem;
    }

    .empty-pool .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Modal Responsive */
    .upload-modal .modal-dialog,
    .create-pdf-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .upload-modal .modal-header,
    .create-pdf-modal .modal-header {
        padding: 1rem;
    }

    .upload-modal .modal-body,
    .create-pdf-modal .modal-body {
        padding: 1rem;
    }

    .upload-modal .modal-title,
    .create-pdf-modal .modal-title {
        font-size: 1.1rem;
    }

    .file-dropzone {
        padding: 1.5rem 1rem;
    }

    .file-dropzone-icon {
        font-size: 2.5rem;
    }

    .file-dropzone-text {
        font-size: 0.9rem;
    }

    .file-dropzone-hint {
        font-size: 0.8rem;
    }

    /* Quill Editor Mobile Styles */
    #quillEditor {
        min-height: 250px;
    }

    #quillEditor .ql-container {
        min-height: 250px;
        font-size: 0.9rem;
    }

    #quillEditor .ql-editor {
        min-height: 250px;
        padding: 0.75rem;
    }

    #quillEditor .ql-toolbar {
        padding: 0.5rem;
    }

    .upload-modal .modal-footer,
    .create-pdf-modal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .upload-modal .modal-footer .btn,
    .create-pdf-modal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .pool-content {
        padding: 1rem;
    }

    .pool-toolbar {
        padding: 0.65rem;
        margin-bottom: 1rem;
    }

    .toolbar-left h4 {
        font-size: 0.95rem;
    }

    .toolbar-left .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .toolbar-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .toolbar-right .btn {
        font-size: 0;
        padding: 0.5rem;
        min-width: 36px;
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .toolbar-right .btn i {
        font-size: 1rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }

    .toolbar-right .btn span:not(.pool-count) {
        display: none;
    }

    .pool-item-actions .btn,
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        font-size: 0;
        padding: 0.6rem;
        min-width: 38px;
        width: 38px;
        height: 38px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .pool-item-actions .btn i,
    .pool-item-actions .btn-view-pool i,
    .pool-item-actions .btn-remove i {
        font-size: 0.95rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }

    .pool-item-actions .btn span,
    .pool-item-actions .btn-view-pool span,
    .pool-item-actions .btn-remove span {
        display: none;
    }

    /* Hide text nodes in buttons */
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        color: transparent;
    }

    .pool-item {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .pool-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .pool-item-meta {
        font-size: 0.75rem;
    }

    .pool-item-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.4rem;
        justify-content: flex-end;
        align-self: flex-end;
        margin-left: auto;
    }

    .pool-item-actions .btn,
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        font-size: 0;
        padding: 0.6rem;
        min-width: 38px;
        width: 38px;
        height: 38px;
        position: relative;
        overflow: hidden;
        text-indent: -9999px;
    }

    .pool-item-actions .btn i,
    .pool-item-actions .btn-view-pool i,
    .pool-item-actions .btn-remove i {
        font-size: 0.95rem;
        margin: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
    }

    .pool-item-actions .btn span,
    .pool-item-actions .btn-view-pool span,
    .pool-item-actions .btn-remove span {
        display: none;
    }

    /* Hide text nodes in buttons */
    .pool-item-actions .btn-view-pool,
    .pool-item-actions .btn-remove {
        color: transparent;
    }

    .pool-item-number {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        margin-right: 0.65rem;
    }

    .drag-handle {
        font-size: 0.9rem;
        padding: 0.35rem;
    }

    .info-banner {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .info-banner i {
        font-size: 1rem;
    }

    .empty-pool {
        padding: 1.5rem 0.5rem;
    }

    .empty-pool i {
        font-size: 3rem;
    }

    .empty-pool h4 {
        font-size: 1rem;
    }

    .empty-pool p {
        font-size: 0.85rem;
    }

    /* Modal Responsive for Small Screens */
    .upload-modal .modal-dialog,
    .create-pdf-modal .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }

    .upload-modal .modal-header,
    .create-pdf-modal .modal-header {
        padding: 0.75rem;
    }

    .upload-modal .modal-body,
    .create-pdf-modal .modal-body {
        padding: 0.75rem;
    }

    .upload-modal .modal-title,
    .create-pdf-modal .modal-title {
        font-size: 1rem;
    }

    .upload-modal .form-label,
    .create-pdf-modal .form-label {
        font-size: 0.9rem;
    }

    .upload-modal .form-control,
    .upload-modal .form-select,
    .create-pdf-modal .form-control {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    .file-dropzone {
        padding: 1rem 0.75rem;
    }

    .file-dropzone-icon {
        font-size: 2rem;
    }

    .file-dropzone-text {
        font-size: 0.85rem;
    }

    .file-dropzone-hint {
        font-size: 0.75rem;
    }

    /* Quill Editor Small Mobile Styles */
    #quillEditor {
        min-height: 200px;
    }

    #quillEditor .ql-container {
        min-height: 200px;
        font-size: 0.85rem;
    }

    #quillEditor .ql-editor {
        min-height: 200px;
        padding: 0.65rem;
    }

    #quillEditor .ql-toolbar {
        padding: 0.4rem;
    }

    #quillEditor .ql-toolbar .ql-formats {
        margin-right: 0.5rem;
    }

    .upload-modal .modal-footer,
    .create-pdf-modal .modal-footer {
        padding: 0.75rem;
    }

    .upload-modal .modal-footer .btn,
    .create-pdf-modal .modal-footer .btn {
        font-size: 0.9rem;
        padding: 0.65rem;
    }

    /* PDF Viewer Modal */
    #pdfViewerModal .modal-dialog {
        margin: 0;
    }

    #pdfViewerModal .modal-header {
        padding: 0.75rem;
    }

    #pdfViewerModal .modal-title {
        font-size: 0.95rem;
    }

    #pdfViewerModal #pdfFrame {
        height: calc(100vh - 50px);
    }
}