/* Reset and Base Styles */
.digifusion-admin-wrap {
    display: flex;
    flex-direction: column;
    margin: 1.25rem 1.25rem 0 0;
    color: #1e1e1e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body.rtl .digifusion-admin-wrap {
    margin-right: 1.25rem;
    margin-left: 0;
}

.digifusion-admin-wrap * {
    box-sizing: border-box;
}

/* Admin Header */
.digifusion-admin-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.875rem;
    padding-bottom: 0.9375rem;
    border-bottom: 0.0625rem solid #e2e4e7;
}

.digifusion-admin-logo {
    display: flex;
}

/* Admin Tabs */
.digifusion-admin-tabs {
    display: flex;

    ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin: 0;

        li {
            margin: 0;
        }
    }

    a {
        display: inline-flex;
        padding: 0.625rem 1.125rem;
        text-decoration: none;
        color: #50575e;
        font-weight: 500;
        border-radius: 0.375rem;
        transition: all 0.2s ease;

        &:hover {
            color: #e74c3c;
            background-color: rgba(234, 102, 102, 0.05);
            outline: none;
            box-shadow: none;
        }

        &.active {
            color: #fff;
            background-color: #e74c3c;
            box-shadow: 0 0.1875rem 0.375rem rgba(234, 102, 102, 0.25);
        }
    }
}

/* Admin Content */
.digifusion-admin-content {
    display: flex;
    gap: 1.875rem;
}

/* Admin columns */
.digifusion-admin-col {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.digifusion-admin-first {
    min-width: 600px;
    flex: 1;
}

.digifusion-admin-second {
    max-width: 40rem;
}

/* Admin Sections */
.digifusion-admin-section {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 0.0625rem solid #f0f0f1;
    transition: all 0.2s ease;

    &:hover {
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
        transform: translateY(-0.0625rem);
    }
}

.digifusion-section-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 0.0625rem solid #f0f0f0;
    background: linear-gradient(
        to right,
        rgba(234, 102, 102, 0.03),
        rgba(234, 102, 102, 0)
    );

    h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #333;

        &.has-icon {
            display: flex;
            align-items: center;
            gap: 0.5rem;

            svg {
                width: 1.5rem;
                height: 1.5rem;
            }
        }
    }

    p {
        margin: 0.5rem 0 0;
        color: #646970;
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Actions Section */
.digifusion-actions-container {
    padding: 1.75rem;
}

.digifusion-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.digifusion-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 0.0625rem solid #e2e4e7;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    &:hover {
        border-color: #e74c3c;
        box-shadow: 0 0.5rem 1.5rem rgba(234, 102, 102, 0.15);
        transform: translateY(-0.125rem);
        color: inherit;
    }
}

.digifusion-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(234, 102, 102, 0.1);
    border-radius: 0.75rem;
    flex-shrink: 0;
    color: #e74c3c;
    transition: all 0.3s ease;

    svg {
        width: 1.5rem;
        height: 1.5rem;
        fill: currentColor;
    }
}

.digifusion-action-card:hover .digifusion-action-icon {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.digifusion-action-content {
    flex: 1;

    h3 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
        color: #1e293b;
    }

    p {
        color: #64748b;
        margin: 0;
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Getting Started */
.digifusion-getting-started {
    padding: 1.75rem;
}

.digifusion-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    padding: 1rem;
    border-radius: 0.5rem;

    &:hover {
        background-color: rgba(234, 102, 102, 0.03);
        transform: translateX(0.25rem);
    }

    &:last-child {
        margin-bottom: 0;
    }
}

.digifusion-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background-color: #e74c3c;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(234, 102, 102, 0.25);
    flex-shrink: 0;
}

.digifusion-step-content {
    flex: 1;

    h3 {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }

    p {
        margin: 0 0 0.75rem;
        font-size: 0.875rem;
        color: #646970;
        line-height: 1.5;
    }
}

.digifusion-step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;

    &:hover {
        color: #c0392b;
        transform: translateX(0.125rem);

        svg {
            transform: translateX(0.125rem);
        }
    }

    svg {
        width: 1rem;
        height: 1rem;
        fill: currentColor;
        transition: transform 0.2s ease;
    }
}

/* Resources Section */
.digifusion-resource-card {
    background: #fff;
    border-radius: 0.5rem;
    border: 0.0625rem solid #f0f0f1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;

    &:hover {
        transform: translateY(-0.125rem);
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
        border-color: #e74c3c;
        color: inherit;
    }
}

.digifusion-resource-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    h3 {
        flex: 1;
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        color: #333;
    }
}

.digifusion-resource-icon {
    background: rgba(231, 77, 60, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    flex-shrink: 0;

    svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: currentColor;
    }
}

.digifusion-resource-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    p {
        color: #666;
        font-size: 0.8125rem;
        margin: 0;
        line-height: 1.5;
    }
}

/* Promotional Content */
.digifusion-promo-container {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
}

.digifusion-promo-product {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    &:not(:last-child) {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 0.0625rem solid #f0f0f0;
    }
}

.digifusion-promo-logo {
    display: flex;

    a {
        display: flex;
    }
}

.digifusion-promo-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;

    h3 {
        font-size: 1.125rem;
        font-weight: 600;
        margin: 0;
        color: #1e293b;
    }

    p {
        color: #555;
        line-height: 1.6;
        margin: 0;
        font-size: 0.875rem;
    }
}

.digifusion-features {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;

    li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #475569;
        font-size: 0.8125rem;
        line-height: 1.5;
        margin: 0;

        svg {
            display: flex;
            width: 10px;
            height: auto;
            fill: #10b981;
        }

        span {
            flex: 1;
        }
    }
}

.digifusion-link-wrapper {
    display: inline-flex;

    .digifusion-button {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        background-color: #e74c3c;
        color: #fff;
        border-color: #e74c3c;
        line-height: 1;
        font-weight: 500;
        box-shadow: none;
        outline: none;
        padding: 0.7rem 1rem;
        border-radius: 30px;
        text-decoration: none;
        text-shadow: none;
        transition: all 0.3s ease;

        &[disabled] {
            background-color: #e74c3c !important;
            border-color: #e74c3c !important;
            color: #fff !important;
        }

        &:hover,
        &:focus {
            background-color: #c0392b;
            border-color: #c0392b;
            color: #fff;
            transform: translateX(0.125rem);
            box-shadow: none;
            outline: none;
        }

        &:hover svg {
            transform: translateX(0.125rem);
        }

        span {
            flex: 1;
        }

        svg {
            transition: all 0.3s ease;
            fill: currentColor;
        }
    }
}

.digifusion-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;

    span {
        flex: 1;
    }

    svg {
        transition: all 0.3s ease;
        fill: currentColor;
    }

    &:hover {
        color: #c0392b;
        transform: translateX(0.125rem);

        svg {
            transform: translateX(0.125rem);
        }
    }
}

.digifusion-coming-soon {
    opacity: 0.6;

    .digifusion-promo-logo {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.digifusion-coming-soon-badge {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
    border-radius: 1rem;
}

/* Responsive Design */
@media (max-width: 1150px) {
    .digifusion-admin-content {
        flex-direction: column;
    }

    .digifusion-admin-first {
        min-width: auto;
    }

    .digifusion-admin-second {
        max-width: 100%;
    }
}

@media (max-width: 870px) {
    .digifusion-admin-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 782px) {
    .digifusion-admin-wrap {
        margin: 1rem 1rem 0 0;
    }

    .digifusion-admin-tabs {
        ul {
            justify-content: center;
        }

        a {
            flex: 1;
            justify-content: center;
        }
    }

    .digifusion-actions-grid {
        grid-template-columns: 1fr;
    }

    .digifusion-step {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .digifusion-step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .digifusion-admin-wrap {
        margin: 0.75rem 0.75rem 0 0;
    }

    .digifusion-admin-section {
        border-radius: 0.5rem;
    }

    .digifusion-section-header {
        padding: 1.25rem;
    }

    .digifusion-actions-container,
    .digifusion-getting-started,
    .digifusion-resources-container {
        padding: 1.25rem;
    }

    .digifusion-action-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}
