.folder {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;

    /* Folder Header */
    .folder-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 32px;
        padding: 0 8px;
        gap: 24px;

        .folder-title-wrapper {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .folder-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;

            i {
                color: #f59e0b;
            }
        }

        .folder-desc {
            font-size: 0.95rem;
            color: #64748b;
            margin: 0;
            line-height: 1.5;
        }

        .folder-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .folder-count {
            font-size: 0.95rem;
            color: #64748b;
            font-weight: 500;
            padding: 8px 16px;
            background: white;
            border-radius: 12px;
            border: 1px solid rgba(0,0,0,0.04);
            box-shadow: 0 1px 0 rgba(0,0,0,0.02);
        }

        .btn-upload {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: linear-gradient(135deg, #2563eb, #4f46e5);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);

            &:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
                filter: brightness(1.05);
            }

            &:active {
                transform: translateY(0);
            }
        }
    }

    /* Folder Grid */
    .folder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    /* File Card */
    .file-card {
        background: white;
        border-radius: 20px;
        padding: 24px;
        border: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 1px 0 rgba(0,0,0,0.02);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.06);
            border-color: rgba(0,0,0,0.08);

            .file-btn-download {
                background: #2563eb;
                color: white;
            }
        }

        /* File Icons Wrapper */
        .file-icon-wrapper {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 12px;
        }

        /* File Icons */
        .file-icon {
            width: 72px;
            height: 72px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            flex-shrink: 0;

            &.file-pdf {
                background: linear-gradient(135deg, #ef4444, #dc2626);
            }

            &.file-image {
                background:none;
                border: solid 2px beige;

                img{
                    max-width: 100%;
                }
            }

            &.file-zip {
                background: linear-gradient(135deg, #f59e0b, #d97706);
            }

            &.file-txt {
                background: linear-gradient(135deg, #10b981, #059669);
            }

            &.file-xls {
                background: linear-gradient(135deg, #10b981, #059669);
            }
        }

        /* File Size */
        .file-size {
            font-size: 0.85rem;
            color: #64748b;
            font-weight: 500;
            padding: 4px 10px;
            background: #f1f5f9;
            border-radius: 8px;
            margin-top: 4px;
        }

        .file-info {
            flex: 1;
        }

        .file-label {
            font-size: 1rem;
            font-weight: 600;
            color: #1e293b;
            margin: 0 0 6px;
            line-height: 1.4;
            word-break: break-word;
        }

        .btn-delete {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            color: #9ca3af;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            padding: 0;
            z-index: 10;
            opacity: 0.5;

            &:hover {
                background: #fee2e2;
                color: #dc2626;
                opacity: 1;
                transform: scale(1.1);
            }

            &:active {
                transform: scale(1);
            }

            i {
                font-size: 0.9rem;
            }
        }

        .file-original {
            font-size: 0.85rem;
            color: #64748b;
            margin: 0 0 12px;
            padding: 4px 10px;
            background: #f1f5f9;
            border-radius: 8px;
            display: inline-block;
            word-break: break-all;
        }

        .file-meta {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0;
            font-size: 0.825rem;
            color: #64748b;

            span {
                display: flex;
                align-items: center;
                gap: 6px;

                i {
                    font-size: 0.75rem;
                    width: 14px;
                    text-align: center;
                }
            }
        }

        .file-btn-download {
            width: 100%;
            padding: 10px 16px;
            border: none;
            border-radius: 12px;
            background: #f1f5f9;
            color: #334155;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: 'Inter', sans-serif;

            &:hover {
                transform: scale(1.02);
            }
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        padding: 24px 16px;

        .folder-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;

            .folder-title {
                font-size: 1.4rem;
            }
        }

        .folder-grid {
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .file-card {
            padding: 20px;

            .file-icon {
                width: 64px;
                height: 64px;
                font-size: 1.75rem;
                border-radius: 14px;
            }
        }
    }

    @media (max-width: 480px) {
        .folder-grid {
            grid-template-columns: 1fr;
        }
    }
}
