// Vertical Table List Styles
.vertical-tables-list {
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow-y: auto;

    .no-forms-message {
        padding: 3rem 2rem;
        text-align: center;
        color: #64748b;
        font-size: 1rem;
        font-weight: 500;
    }
}

.modern-table-item {
    .vertical-form-card {
        border-bottom: 1px solid #f1f5f9;
        transition: all 0.2s ease;
        position: relative;

        &:last-child {
            border-bottom: none;
        }

        &:hover {
            background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
        }

        .form-main-content {
            display: flex;
            align-items: center;
            gap: 2rem;
            padding: 1.5rem 2rem;

            .form-info-section {
                flex: 1;
                min-width: 0;

                .form-title-link {
                    text-decoration: none;
                    color: inherit;

                    .form-title {
                        font-size: 1.125rem;
                        font-weight: 700;
                        color: #1e293b;
                        margin: 0 0 0.5rem 0;
                        line-height: 1.3;
                        transition: color 0.2s ease;
                        word-break: break-word;

                        &:hover {
                            color: #3b82f6;
                        }
                    }
                }

                .form-meta {
                    display: flex;
                    gap: 1rem;
                    flex-wrap: wrap;

                    span {
                        font-size: 0.875rem;
                        color: #64748b;
                        font-weight: 500;

                        &.form-id {
                            color: #8b5cf6;
                            font-weight: 600;
                        }
                    }
                }
            }

            .form-shortcode-section {
                flex: 0 0 auto;
                min-width: 200px;

                .shortcode-display {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
                    border: 1px solid #e2e8f0;
                    border-radius: 8px;
                    padding: 0.5rem 0.75rem;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    width: 100%;

                    &:hover {
                        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
                        border-color: #cbd5e1;
                        transform: translateY(-1px);
                    }

                    &.copied {
                        background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
                        border-color: #86efac;
                        color: #166534;

                        .copy-icon {
                            color: #16a34a;
                        }
                    }

                    code {
                        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
                        font-size: 0.75rem;
                        color: #475569;
                        background: none;
                        padding: 0;
                        border: none;
                        font-weight: 500;
                    }

                    .copy-icon {
                        color: #64748b;
                        font-size: 0.875rem;
                        transition: color 0.2s ease;
                        margin-left: 0.5rem;
                    }
                }
            }

            .form-status-section {
                flex: 0 0 auto;

                .status-badge {
                    padding: 0.375rem 0.75rem;
                    border-radius: 20px;
                    font-size: 0.75rem;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;

                    &.active {
                        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                        color: white;
                        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
                    }
                }
            }
        }



        .form-actions-section {
            display: flex;
            gap: 0.5rem;
            padding: 0 2rem 1.5rem;
            justify-content: flex-end;

            .action-btn {
                display: flex;
                align-items: center;
                gap: 0.375rem;
                padding: 0.5rem 0.875rem;
                border-radius: 6px;
                font-size: 0.8rem;
                font-weight: 600;
                transition: all 0.2s ease;
                border: none;
                cursor: pointer;
                text-decoration: none;

                svg {
                    font-size: 0.875rem;
                }

                span {
                    @media (max-width: 768px) {
                        display: none;
                    }
                }

                &.edit-btn {
                    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
                    color: #1d4ed8;
                    border: 1px solid #3b82f6;

                    &:hover {
                        background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
                        transform: translateY(-1px);
                        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
                    }
                }

                &.clone-btn {
                    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
                    color: #1d4ed8;
                    border: 1px solid #3b82f6;

                    &:hover {
                        background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
                        transform: translateY(-1px);
                        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
                    }
                }

                &.export-btn {
                    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
                    color: #1d4ed8;
                    border: 1px solid #3b82f6;

                    &:hover {
                        background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
                        transform: translateY(-1px);
                        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
                    }
                }

                &.delete-btn {
                    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
                    color: #991b1b;
                    border: 1px solid #ef4444;

                    &:hover {
                        background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
                        transform: translateY(-1px);
                        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
                    }
                }
            }
        }
    }



    // Responsive adjustments
    @media (max-width: 768px) {
        .modern-table-item {
            .vertical-form-card {
                .form-main-content {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 1rem;
                    padding: 1rem 1.5rem;

                    .form-info-section {
                        width: 100%;

                        .form-meta {
                            flex-direction: column;
                            gap: 0.25rem;
                        }
                    }

                    .form-shortcode-section {
                        width: 100%;
                        min-width: auto;
                    }

                    .form-status-section {
                        align-self: flex-end;
                    }
                }

                .form-actions-section {
                    padding: 0 1.5rem 1rem;
                    justify-content: center;
                    flex-wrap: wrap;

                    .action-btn {
                        flex: 1;
                        min-width: 0;
                        justify-content: center;
                    }
                }
            }
        }
    }

    @media (max-width: 480px) {
        .modern-table-item {
            .vertical-form-card {
                .form-main-content {
                    padding: 1rem;
                }

                .form-actions-section {
                    padding: 0 1rem 1rem;
                    gap: 0.375rem;

                    .action-btn {
                        padding: 0.5rem;

                        svg {
                            font-size: 0.75rem;
                        }
                    }
                }
            }


        }
    }
}