* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF9E6 50%, #FFF4D0 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}
.empty-state {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: rgba(180, 100, 50, 0.384);
    font-weight: 500;
    pointer-events: none;
    text-align: center;
    transition: opacity 0.3s ease;
}
.empty-state.hidden {
    opacity: 0;
}
.containers-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 35px;
    padding-bottom: 100px;
}
.container {
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(230, 200, 120, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 220px;
    height: 280px;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.container:hover {
    box-shadow: 0 6px 28px rgba(230, 200, 120, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 215, 100, 0.4);
}
.container.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 85vh;
    z-index: 2500;
    cursor: default;
    overflow-y: auto;
}
.container.expanded:hover {
    transform: translate(-50%, -50%);
}
.container-title {
    outline: none;
    font-size: 20px;
    font-weight: 600;
    color: #5D4C37;
    min-height: 28px;
    flex-shrink: 0;
    cursor: text;
    white-space: nowrap;       
    overflow: hidden;          
    text-overflow: ellipsis;   
}
.container.expanded .container-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.container:not(.expanded) .container-title {
    opacity: 0.9;
}
.container-title:empty:before {
    content: 'Title';
    color: rgba(200, 170, 100, 0.5);
    font-weight: 500;
}
.container-content {
    outline: none;
    min-height: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #5D4037;
    flex: 1;
    overflow: hidden;
}
.container.expanded .container-content {
    overflow-y: auto;
}
.container:not(.expanded) .container-content {
    opacity: 0.25;
    pointer-events: none;
    text-overflow: ellipsis;
    max-height: calc(100% - 60px);
}
.container:not(.expanded).content-hidden .container-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}
.container-content:empty:before {
    content: 'Start writing...';
    color: rgba(200, 170, 100, 0.4);
}
.add-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFC947 0%, #FFA000 100%);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 160, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.add-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 32px rgba(255, 160, 0, 0.5);
}
.add-button:active {
    transform: scale(0.95) rotate(90deg);
}
.toolbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(230, 200, 120, 0.3);
    padding: 12px;
    display: none;
    gap: 8px;
    z-index: 3000;
    border: 2px solid rgba(255, 215, 100, 0.3);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.toolbar.show {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toolbar-btn {
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.2s;
    color: #6D5C41;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    font-weight: 500;
}
.toolbar-btn:hover {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF0C8 100%);
}
.toolbar-btn .icon {
    height: 22px;
    width: 22px;
    filter: invert(35%)sepia(10%)saturate(500%)hue-rotate(10deg)brightness(90%)contrast(90%);
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE9B3 0%, #FFD88A 100%);
    border: none;
    color: #6D5C41;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.container.expanded .close-btn {
    display: flex;
}
.close-btn:hover {
    background: linear-gradient(135deg, #FFD88A 0%, #FFC966 100%);
    transform: scale(1.1);
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none;
}
.overlay.show {
    display: block;
}
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    display: none;
    flex-direction: column;
    gap: 20px;
    min-width: 320px;
    border: 2px solid rgba(255, 215, 100, 0.4);
}
.confirm-dialog.show {
    display: flex;
}
.confirm-dialog-text {
    color: #5D4C37;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
}
.confirm-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.confirm-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.confirm-btn-yes {
    background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%);
    color: white;
}
.confirm-btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 160, 0, 0.4);
}
.confirm-btn-no {
    background: white;
    color: #6D5C41;
    border: 2px solid rgba(230, 200, 120, 0.4);
}
.confirm-btn-no:hover {
    background: #FFF9E6;
    border-color: rgba(255, 160, 0, 0.5);
}
strong {
    font-weight: 600;
    color: #4E342E;
}
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    cursor: text; 
}

.checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF9800;
    pointer-events: auto; 
}

.checkbox-item span {
    user-select: text; 
    -webkit-user-select: text;
    -moz-user-select: text;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.container-content p {
    margin: 8px 0;
}
.container-content p:first-child {
    margin-top: 0;
}
.container-content p:last-child {
    margin-bottom: 0;
}
.container-timestamp {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    font-size: 11px;
    color: rgba(93, 76, 55, 0.5);
    text-align: left;
}
.container-metadata {
    font-size: 13px;
    color: rgba(93, 76, 55, 0.6);
    margin-top: 4px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.container.expanded .container-metadata {
    display: block;
}
.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    cursor: text;
}
.bullet-point {
    font-size: 20px;
    line-height: 1.6;
    user-select: none;
    pointer-events: none;
    color: inherit;
    font-weight: normal !important;
    text-decoration: none !important;
    font-style: normal !important;
    background-color: transparent !important;
}
.bullet-item span:last-child {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    flex: 1;
}
.number-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    cursor: text;
}

.number-point {
    font-size: 16px;
    line-height: 1.6;
    user-select: none;
    pointer-events: none;
    color: inherit;
    font-weight: normal !important;
    text-decoration: none !important;
    font-style: normal !important;
    background-color: transparent !important;
    min-width: 25px;
}

.number-item span:last-child {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    flex: 1;
}

.toolbar-btn.text-formatting:not(.visible) {
    position: absolute;
    width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toolbar-btn.text-formatting.visible {
    position: relative;
    max-width: 50px;
    padding: 10px 10px;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.type-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 3500;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.type-selector-modal.show {
    display: flex;
}

.type-selector-content {
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 40px;
    border: 2px solid rgba(255, 215, 100, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.type-option {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
    border: 2px solid rgba(230, 200, 120, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.1) 0%, rgba(255, 160, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.type-option:hover::before {
    opacity: 1;
}

.type-option:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 160, 0, 0.5);
    box-shadow: 0 12px 35px rgba(255, 160, 0, 0.2);
}

.type-option:active {
    transform: translateY(-4px) scale(0.98);
}

.type-option img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.type-option:hover img {
    transform: scale(1.1) rotate(5deg);
}

.type-option span {
    font-size: 19px;
    font-weight: 600;
    color: #5D4C37;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.type-option:hover span {
    color: #FFA000;
}

.container.folder {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D0 100%);
}

.container.folder .container-content {
    display: none;
}

.folder-icon {
    width: 60px;
    height: 60px;
    margin: 20px auto;
    display: block;
}

.container.folder:not(.expanded) .folder-icon {
    opacity: 0.8;
}

.breadcrumb {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(230, 200, 120, 0.25);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    border: 2px solid rgba(255, 215, 100, 0.3);
    max-width: 80%;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar {
    height: 6px;
}

.breadcrumb::-webkit-scrollbar-track {
    background: rgba(230, 200, 120, 0.1);
    border-radius: 3px;
}

.breadcrumb::-webkit-scrollbar-thumb {
    background: rgba(255, 160, 0, 0.3);
    border-radius: 3px;
}

.breadcrumb::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 160, 0, 0.5);
}

.breadcrumb.show {
    display: flex;
}

.breadcrumb-item {
    color: #6D5C41;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #FFA000;
}

.breadcrumb-separator {
    color: rgba(109, 92, 65, 0.4);
    font-size: 14px;
}

.breadcrumb-item.active {
    color: #FFA000;
    cursor: default;
}

.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border: 2px solid rgba(230, 200, 120, 0.4);
    color: #6D5C41;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230, 200, 120, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-button.show {
    display: flex;
}

.back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(230, 200, 120, 0.4);
    border-color: rgba(255, 160, 0, 0.6);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D0 100%);
}

.back-button:active {
    transform: scale(0.95);
}

#backImage {
    width: 24px;
    height: 24px;
    filter: saturate(0.5) brightness(0.97);
}

.folder-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
    margin-top: 10px;
}

.folder-preview-item {
    width: calc(50% - 4px);
    height: 70px;
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border: 1.5px solid rgba(230, 200, 120, 0.4);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(230, 200, 120, 0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    position: relative;
}

.folder-preview-item.is-folder {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D0 100%);
}

.folder-preview-item-title {
    font-size: 10px;
    font-weight: 600;
    color: #5D4C37;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.folder-preview-item-content {
    font-size: 8px;
    line-height: 1.4;
    color: rgba(93, 76, 55, 0.25);
    overflow: hidden;
    display: -webkit-box;
    flex: 1;
}

.folder-preview-item-icon {
    width: 24px;
    height: 24px;
    margin: 8px auto 4px auto;
    opacity: 0.8;
}

.container.folder.has-content .folder-icon {
    display: none;
}

.container.folder.content-hidden .folder-preview {
    display: none;
}

.container.folder.content-hidden .folder-icon {
    display: block;
    margin: 20px auto;
}

.drag-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 7px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.drag-handle::before,
.drag-handle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #999999;
    border-radius: 1px;
}

.drag-handle::before {
    top: 0;
}

.drag-handle::after {
    bottom: 0;
}

.container:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.container.dragging {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.container {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drop-zone {
    width: 220px;
    height: 280px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 200, 100, 0.12);
    pointer-events: none;
    z-index: 998;
    box-shadow: inset 0 0 20px rgba(255, 160, 0, 0.2);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drop-zone.show {
    opacity: 1;
    transform: scale(1);
}

.container.folder.drag-over-folder {
    border-color: #FFA000;
    box-shadow: 0 0 25px rgba(255, 160, 0, 0.45);
    background: linear-gradient(135deg, #FFF4D0 0%, #FFE9B3 100%);
    transform: scale(1.02);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breadcrumb-item.drag-over {
    background: rgba(255, 160, 0, 0.25);
    padding: 6px 10px;
    border-radius: 8px;
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drag-ghost {
    position: fixed;
    opacity: 0.7;
    pointer-events: none;
    z-index: 9999;
    width: 220px;
    height: 280px;
    transform-origin: center;
    transition: transform 0.12s cubic-bezier(0.2, 0, 0.38, 0.9), opacity 0.2s ease;
}

.drag-ghost.over-folder {
    transform: scale(0.65);
}

.container.folder.drag-over-folder {
    border-color: #FFA000;
    box-shadow: 0 0 20px rgba(255, 160, 0, 0.4);
    background: linear-gradient(135deg, #FFF4D0 0%, #FFE9B3 100%);
    transition: all 0.2s ease;
}
.selection-cancel-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFEF8 0%, #FFFBF0 100%);
    border: 2px solid rgba(230, 200, 120, 0.4);
    color: #6D5C41;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230, 200, 120, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    transition: all 0.2s;
}
.selection-cancel-btn.show {
    display: flex;
}
.selection-cancel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(230, 200, 120, 0.4);
    border-color: rgba(255, 160, 0, 0.6);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF4D0 100%);
}

.container.selected {
    border-color: #FFA000;
    box-shadow: 0 6px 28px rgba(255, 160, 0, 0.35);
}

.container .selection-check {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #FFA000;
    background: white;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    flex-shrink: 0;
}
.selection-mode .container .selection-check {
    display: flex;
}
.container.selected .selection-check {
    background: #FFA000;
}
.container.selected .selection-check::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: bold;
}

.delete-button {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(230, 200, 120, 0.4);
    color: #6D5C41;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230, 200, 120, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.delete-button.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.delete-button.active:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(230, 200, 120, 0.4);
    border-color: rgba(255, 160, 0, 0.6);
}
#deleteImage { width: 30px; height: 30px; }

.hide-content-button {
    position: fixed;
    bottom: 30px;
    right: 190px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid rgba(230, 200, 120, 0.4);
    color: #6D5C41;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(230, 200, 120, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.hide-content-button.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.hide-content-button.active:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(230, 200, 120, 0.4);
    border-color: rgba(255, 160, 0, 0.6);
}
#hideContentImage { 
    width: 30px; 
    height: 30px; 
}
.back-button.hidden-in-selection,
.breadcrumb.hidden-in-selection {
    display: none !important;
}
.selection-count {
    position: fixed;
    top: 30px;
    left: 95px;
    height: 50px;
    display: none;
    align-items: center;
    font-size: 22px;
    font-weight: 500;
    color: #6D5C41;
    z-index: 1100;
    white-space: nowrap;
}

.selection-count.show {
    display: flex;
}

@media only screen and (max-width: 1024px) {
    body {
        padding: 30px 15px;
    }
    
    .containers-wrapper {
        gap: 15px;
        padding-top: 30px;
        padding-bottom: 90px;
        justify-content: flex-start;
    }
    
    .container {
        width: calc(33.333% - 10px);
        max-width: 220px;
        min-width: 180px;
    }
    
    .breadcrumb {
        max-width: 85%;
        padding: 10px 20px;
    }
}

@media only screen and (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .containers-wrapper {
        gap: 12px;
        padding-top: 50px;
        padding-bottom: 80px;
        justify-content: flex-start;
    }
    
    .container {
        width: calc(50% - 6px);
        max-width: 220px;
        min-width: 150px;
        height: 240px;
        padding: 15px;
    }
    
    .container-title {
        font-size: 18px;
    }
    
    .container-content {
        font-size: 14px;
    }
    
    .container.expanded {
        width: 95%;
        height: 90vh;
        padding: 20px 20px 96px;
    }
    
    .add-button {
        width: 55px;
        height: 55px;
        bottom: 96px;
        right: 20px;
        font-size: 28px;
    }
    
    .delete-button {
        width: 55px;
        height: 55px;
        bottom: 96px;
        right: 90px;
    }
    
    #deleteImage {
        width: 26px;
        height: 26px;
    }
    
    .hide-content-button {
        width: 55px;
        height: 55px;
        bottom: 96px;
        right: 160px;
    }
    
    #hideContentImage {
        width: 26px;
        height: 26px;
    }
    
    .back-button {
        width: 45px;
        height: 45px;
        top: 20px;
        left: 20px;
    }
    
    #backImage {
        width: 20px;
        height: 20px;
    }
    
    .breadcrumb {
        max-width: 90%;
        padding: 8px 16px;
        top: 15px;
        font-size: 13px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
    }
    
    .type-selector-content {
        padding: 30px 25px;
        gap: 20px;
        flex-direction: column;
    }
    
    .type-option {
        padding: 25px 35px;
        min-width: 140px;
    }
    
    .type-option img {
        width: 70px;
        height: 70px;
    }
    
    .type-option span {
        font-size: 17px;
    }
    
    .confirm-dialog {
        min-width: 280px;
        padding: 25px;
    }
    
    .confirm-dialog-text {
        font-size: 16px;
    }
    
    .confirm-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .folder-preview-item {
        height: 60px;
    }
    
    .folder-icon {
        width: 50px;
        height: 50px;
    }
    
    .drop-zone {
        width: calc(50% - 6px);
        min-width: 150px;
        height: 240px;
    }
    
    .drag-ghost {
        width: calc(50% - 6px);
        min-width: 150px;
        height: 240px;
    }

    .empty-state {
        font-size: 22px;
    }

    .toolbar {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(110%);
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
        border-width: 2px 0 0 0;
        box-shadow: 0 -6px 28px rgba(230, 200, 120, 0.3);
        overflow-x: auto;
        overflow-y: hidden;
    }
    .toolbar.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .toolbar-btn { 
        flex: 0 0 auto;
        padding: 0; 
        width: 44px; 
        height: 44px; 
        justify-content: center; 
    }
    .toolbar-btn .icon { 
        height: 22px; 
        width: 22px; 
    }
    .toolbar-btn.text-formatting:not(.visible) { 
        display: none; 
    }
    .toolbar-btn.text-formatting.visible { 
        display: flex; 
        width: 44px;
        height: 44px; 
        max-height: 44px; 
        padding: 0; 
        opacity: 1; 
    }
    .toolbar.format-mode .toolbar-btn:not(.text-formatting):not(.toolbar-text-btn) {
        display: none;
    }
    .toolbar.format-mode .toolbar-btn.text-formatting {
        order: 1;
    }
    .toolbar.format-mode .toolbar-text-btn {
        order: 2;
        background: linear-gradient(135deg, #FFF0C8 0%, #FFE3A3 100%);
    }

    .selection-cancel-btn {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .selection-count {
        top: 20px;
        left: 75px;
        height: 45px;
        font-size: 18px;
    }
}

@media only screen and (max-width: 480px) {
    .container {
        width: calc(50% - 6px);
        min-width: 140px;
        max-width: none;
    }
    
    .containers-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .breadcrumb {
        max-width: 95%;
    }

    .type-selector-content {
        padding: 25px 20px;
    }
    
    .type-option {
        width: 100%;
        padding: 20px 30px;
    }
    
    .drop-zone {
        width: calc(50% - 6px);
        min-width: 140px;
    }
    
    .drag-ghost {
        width: calc(50% - 6px);
        min-width: 140px;
    }
    .toolbar {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(110%);
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
        border-radius: 0;
    }
    .toolbar.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .toolbar-btn { 
        flex: 0 0 auto;
        padding: 0; 
        width: 42px; 
        height: 42px; 
        justify-content: center; 
    }
    .toolbar-btn .icon { 
        height: 20px; 
        width: 20px; 
    }
    .toolbar-btn.text-formatting:not(.visible) { 
        display: none; 
    }
    .toolbar-btn.text-formatting.visible { 
        display: flex; 
        width: 42px;
        height: 42px; 
        max-height: 42px; 
        padding: 0; 
        opacity: 1; 
    }
}
