/* Downloads Manager Frontend Styles - Based on Figma Design */

/* Container */
.adm-downloads-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 0;
}

/* Grid Layout */
.adm-downloads-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
}

/* Job Post Card */
.adm-job-post {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 24px 28px;
    gap: 24px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E4E7EC;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.adm-supporting-text {
    margin: 0px !important;
}

.adm-job-post:hover {
    box-shadow: 0 15px 30px #00000012;
}

/* Content Section */
.adm-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    flex: 1;
}

/* Text Section */
.adm-text-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

button.adm-button-base.adm-dropdown-toggle {
    display: flex;
}

/* Text and Badge */
.adm-text-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
}

/* Title Text */
.adm-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-style: normal;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    color: #22212A !important;
    margin: 0;
    flex: 1;
}

/* Badge */
.adm-badge {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    mix-blend-mode: multiply;
}

.adm-badge-base {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    background: #ECFDF3;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #027A48;
}

/* Supporting Text */
.adm-supporting-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0;
    width: 100%;
}

/* Details Section */
.adm-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

/* Detail Wrap */
.adm-detail-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
}

/* Icon */
.adm-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #98A2B3;
    fill: none;
}

.adm-icon[src] {
    /* For uploaded SVG icons */
    object-fit: contain;
}

/* Detail Text */
.adm-detail-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    white-space: nowrap;
}

/* Button Wrapper */
.adm-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    border-radius: 4px;
    flex-shrink: 0;
}

button.adm-button-base.adm-dropdown-toggle {
    outline: none !important;
}

/* Button Base */
.adm-button-base {
    box-sizing: border-box !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 14px !important;
    gap: 8px;
    min-width: 95px;
    background: #175CD3 !important;
    border: 1px solid #175CD3 !important;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.adm-button-base:hover {
    background: #FFA400 !important;
    border-color: #FFA400 !important;
    box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1) !important;
}

.adm-button-base:active {
    background: #175CD3 !important;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05) !important;
}

/* Button Text */
.adm-button-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
}

/* Dropdown Styles */
.adm-dropdown {
    position: relative;
    display: inline-block;
}

.adm-dropdown-toggle {
    gap: 4px;
}

.adm-dropdown-icon {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
    transition: transform 0.2s ease;
}

.adm-dropdown.active .adm-dropdown-icon {
    transform: rotate(180deg);
}

.adm-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 4px;
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
    z-index: 10;
    overflow: hidden;
}

.adm-dropdown.active .adm-dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.adm-dropdown-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    text-decoration: none;
    color: #344054;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 20px;
    transition: background-color 0.2s ease;
}

.adm-dropdown-item:hover {
    background: #F9FAFB;
}

.adm-version-name {
    font-weight: 500;
    color: #344054;
}

.adm-version-size {
    font-weight: 400;
    color: #667085;
    font-size: 13px;
}

/* Load More Button */
.adm-load-more-container {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    width: 100%;
}

.adm-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
	outline: none;
    gap: 8px !important;
    padding: 10px 18px !important;
    background: #FFFFFF !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #344054 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.adm-load-more-btn:hover {
	outline: none;
    background: #F9FAFB !important;
    border-color: #98A2B3 !important;
}

.adm-load-more-btn:disabled {
	outline: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner */
.adm-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.adm-spinner-circle {
    stroke: #175CD3;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* No Downloads */
.adm-no-downloads {
    text-align: center;
    padding: 48px 24px;
    color: #667085;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .adm-downloads-container {
        padding: 0px;
    }
	
	button.adm-button-base.adm-download-link {
    width: auto;
}
	
	h3.adm-text {
    flex: 0 !important;
}
    
    .adm-job-post {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .adm-button-wrapper {
        width: 100%;
    }
    
    .adm-button-base {
        width: 100%;
    }
    
    .adm-dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    .adm-details {
        gap: 16px;
    }
    
    .adm-text {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .adm-job-post {
        padding: 16px;
        gap: 16px;
    }
    
    .adm-content {
        gap: 24px;
    }
    
    .adm-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

div:where(.swal2-container).swal2-center>.swal2-popup {
    width: 500px !important;
}

.swal2-styled.swal2-confirm {
    background-color: #175CD3 !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: #1570EF !important;
}

/* Compact SweetAlert Styles */
.adm-compact-popup {
    border-radius: 8px !important;
}

.adm-compact-title {
    font-size: 20px !important;
	font-weight: 500 !important;
    padding: 10px 0 5px 0 !important;
    margin: 0 !important;
}

.adm-compact-text {
    font-size: 14px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
}

.adm-compact-popup .swal2-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 10px auto 10px auto !important;
}

.adm-compact-popup .swal2-icon.swal2-info {
    border-color: #175CD3 !important;
    color: #175CD3 !important;
}

.adm-compact-popup .swal2-loader {
    width: 30px !important;
    height: 30px !important;
}

/* ========================================
   Desktop Download Styles
   ======================================== */

/* Container */
.adm-desktop-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 100%;
    max-width: 816px;
}

.adm-desktop-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 12px;
    width: 100%;
}

/* Subheading */
.adm-desktop-subheading {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    color: #22212A;
}

/* Heading and Supporting Text */
.adm-desktop-heading-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 32px;
    width: 100%;
}

.adm-desktop-heading-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 12px;
    width: 100%;
}

.adm-desktop-heading {
    width: 100%;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 48px !important;
    line-height: 60px !important;
    letter-spacing: -0.02em !important;
    color: #22212A !important;
    margin: 0;
}

.adm-desktop-supporting-text {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
    margin: 0px !important;
}

/* Details */
.adm-desktop-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;
    width: 100%;
    flex-wrap: wrap;
}

.adm-desktop-detail-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
}

.adm-desktop-icon {
    width: 20px;
    height: 20px;
    stroke: #98A2B3;
}

.adm-desktop-detail-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #667085;
}

.adm-desktop-details {
    margin-top: 8px;
}

/* Download Button */
.adm-desktop-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 12px;
    margin-top: 18px;
}

.adm-desktop-button-base {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    gap: 8px;
    min-width: 289px;
    height: 44px;
    background: #175CD3;
    border: 1px solid #175CD3;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.adm-desktop-button-base:hover {
    background: #FFA400;
    border-color: #FFA400;
}

.adm-desktop-button-icon {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
}

.adm-desktop-button-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 768px) {
    .adm-desktop-heading {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .adm-desktop-button-base {
        width: 100%;
    }

    .adm-desktop-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========================================
   System Requirements Styles
   ======================================== */

.adm-sysreq-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    border: 1px solid #E4E7EC;
    border-radius: 4px;
}

.adm-sysreq-title {
    width: 100%;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 30px !important;
    color: #22212A !important;
    margin: 0;
}

.adm-sysreq-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0px;
    gap: 16px;
    width: 100%;
}

.adm-sysreq-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 100%;
}

.adm-sysreq-bullet-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 10px;
    width: 8px;
    height: 20px;
}

.adm-sysreq-bullet {
    width: 8px;
    height: 8px;
    background: #1570EF;
    border-radius: 2px;
}

.adm-sysreq-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;
    flex-grow: 1;
}

.adm-sysreq-text {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
}

.adm-sysreq-divider {
    width: 100%;
    height: 1px;
    background: #E4E7EC;
}

/* Responsive */
@media (max-width: 768px) {
    .adm-sysreq-container {
        max-width: 100%;
    }
}