@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

* {
   font-family: 'Plus Jakarta Sans', sans-serif;
}

/* General styles */
body {
    background-color: #f5f7fa;
    color: #333;
}


h2.page-title {
    color: #f5f7fa;
}

h2#member-main-resources-head {
    color: #f5f7fa;
}




.am-form form {
    padding: 2em;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.navbar-expand-md .navbar-collapse.show {
    flex-direction: column;
    z-index: 10;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
}

input#resourcesSearchInput {
        border: 1px solid #bd94e6;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 5px 3px 4px rgb(183 143 224);
}

div#member-main-subscriptions {
    background: antiquewhite;
    border-radius: 16px;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 1px #ffffff;
}

.am-layout-two-coll {
    border: 1px solid #d9d9d900 !important;
    box-shadow: 0 1px 3px #e3e3e300 !important;
}


.nav-link-icon {
    margin-right: 0.5em;
}

.am-footer-links ul li {
    display: inline-block;
    list-style: none;
    margin-right: 15px;
}

#widget-member-main-links {
    display: none;
}

#widget-member-main-subscriptions #member-main-subscriptions-head {
    display: none;
}

#member-main-subscriptions {
    margin-bottom: 2em;
}

.page-body {
    margin-top: 1em;
}

.am-form div.am-element-title .comment {
    font-size: 0.8rem;
    color: #6b7280;
}

.am-layout-two-coll, 
.am-layout-two-coll .am-layout-two-coll-top, 
.am-layout-two-coll .am-layout-two-coll-bottom {
    background: transparent !important;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.am-layout-two-coll .am-coll-left .am-coll-content {
    margin: 0;
}

.am-footer-links ul li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s ease;
}

.am-footer-links ul li a:hover {
    color: #5d3bee;
}

/* Auth styles */
.sb-theme-auth .auth-logo {
    text-align: center;
    margin: 4em 0 2em 0;
}

.sb-theme-auth .auth-logo img {
    max-width: 200px;
}

.sb-theme-auth .am-auth-form form legend {
    background: #ffffff;
    padding: 1.5em 1em;
    color: #111827;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
}

.sb-theme-auth .am-form div.am-element {
    margin-left: 0;
    padding: 0;
    display: block;
}

.sb-theme-auth .am-form div.am-element-title {
    width: 100%;
    float: none;
    text-align: left;
    padding: 0;
    font-weight: 600;
}

.sb-theme-auth .am-auth-form div.am-row div.am-element-title {
    padding-right: 0;
    padding-left: 0;
}

.sb-theme-auth .am-auth-form div.am-row div.am-element {
    padding-left: 0;
}

.sb-theme-auth .am-form fieldset {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sb-theme-auth .am-row.am-row-login-pass {
    display: block;
    margin: 30px 0px 40px;
}

.sb-theme-auth .am-row.am-row-buttons {
    display: block;
    margin: 30px 0px;
}

.sb-theme-auth .am-row.am-row-buttons input {
    display: block;
    margin: 20px 0px;
    width: 100%;
    border-radius: 8px;
    padding: 10px;
    background-color: #5d3bee;
    border: none;
    color: white;
    font-weight: 500;
    transition: background 0.2s ease;
}

.sb-theme-auth .am-row.am-row-buttons input:hover {
    background-color: #4b30c3;
}

.sb-theme-auth .am-row.am-row-buttons .am-form-login-switch-wrapper {
    display: block;
    margin: 20px 0px;
}

.am-credits {
    margin-top: 1em;
    color: #4b5563;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    height: auto;
    margin-bottom: 1em;
}

.navbar-brand-image {
    height: 3rem;
    width: auto;
}

.am-footer-links {
    flex-grow: 1;
}

.am-footer-links ul {
    margin: 0px;
}

.am-footer-sm a {
    font-size: 1rem;
    padding: 0 5px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.am-footer-sm a:hover {
    color: #5d3bee;
}

.am-login-form-wrapper {
    margin-top: 0px;
}

.am-auth-form {
    width: 100%;
}

.am-auth-form div.am-row {
    background: #ffffff;
    border-bottom: none;
}

.am-auth-form.am-form fieldset legend {
    padding: 2em 1rem;
    font-size: 1.2rem;
    background: #ffffff;
    border-bottom: none;
    float: none;
    font-weight: 700;
    color: #5d3bee;
    font-family: 'Plus Jakarta Sans';
    border-radius: 12px 12px 0 0;
}

.am-auth-form .am-row {
    display: block;
    padding: 15px 25px;
}

.am-auth-form .am-row .am-element-title {
    padding: 0px;
    width: 100%;
    text-align: left;
    float: none;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans';
    color: #111827;
}

.am-auth-form .am-row .am-element {
    padding: 0px;
    float: none;
    width: 100%;
    margin: 0px;
}

.am-auth-form .am-row.am-row-buttons {
    margin-bottom: 2em;
}

.am-auth-form .am-row.am-row-buttons .am-element input {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 10px 16px;
    background-color: #5d3bee;
    border: none;
    color: white;
    font-weight: 500;
    transition: background 0.2s ease;
}

.am-auth-form .am-row.am-row-buttons .am-element input:hover {
    background-color: #4b30c3;
}

.am-auth-form .am-row.am-row-buttons .am-element span {
    display: block;
    margin-top: 20px;
    font-size: 16px;
    color: #6b7280;
}

.am-signup-link {
    font-size: 16px;
    color: #5d3bee;
    text-decoration: none;
    transition: color 0.2s ease;
}

.am-signup-link:hover {
    color: #4b30c3;
    text-decoration: underline;
}



.login-logo img {
    max-height: 4rem;
    height: 4rem;
    width: auto;
}

.am-block-nodata {
    text-align: center;
    padding: 2em;
    background: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

img.img-non-data {
    max-width: 300px;
    display: block;
    margin: 20px auto;
    opacity: 0.8;
}

/* Resources styling */
#widget-member-main-resources {
    margin: 20px 0px;
    padding: 20px 15px;
    border-top: none;
    border-bottom: none;
    background-color: transparent;
}

#widget-member-main-resources .am-block {
    background: transparent;
    border: none;
    border-radius: 3px;
    margin-bottom: 1em;
    padding: 0;
    box-shadow: none;
}

#widget-member-main-resources .am-block ul {
    margin: 0;
    padding: 0;
    display: grid;
    justify-content: space-between;
    grid-gap: 1em;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

#widget-member-main-resources .am-block ul.am-widget-list li {
    padding: 0;
    background: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#widget-member-main-resources .am-block ul.am-widget-list li:hover {
    transform: translateY(-5px);
}

#widget-member-main-resources .product-description {
    min-height: 20px;
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    height: 100%;
    background: white;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    color: #111827;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.card-img-top {
    height: 160px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #f9fafb;
}

.card-footer {
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-success {
    background-color: #5d3bee;
    border-color: #5d3bee;
    color: white;
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: background 0.2s ease;
}

.btn-success:hover {
    background-color: #4b30c3;
    border-color: #4b30c3;
}

/* Subscription styling */
.subscription-welcome {
    background: #e8ffd9;
    border-radius: 24px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.welcome-title {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.welcome-subtitle {
    color: #111827;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Search input styling */
.am-input-filter-wrapper {
    background: transparent;
    margin-bottom: 20px;
}

.am-input-filter-inner-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.am-input-filter {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    background-color: #F9FAFB;
    transition: all 0.2s ease;
}

.am-input-filter:focus {
    outline: none;
    border-color: #A5B4FC;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.2);
}

.am-input-filter-inner-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Layout and responsive styles */
.am-layout-two-coll .am-coll-left .am-coll-content,
.am-layout-two-coll .am-coll-right .am-coll-content {
    margin: 0 !important;
}

#member-main-subscriptions {
    padding: 0 !important;
}

/* Signup page styling */
#signup-page #row-product_id_page-0-0 .am-element-title,
#signup-page #row-paysys_id .am-element-title {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f5f7fa;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #111827;
}

#signup-page #row-product_id_page-0-0 .am-element,
#signup-page #row-paysys_id .am-element {
    margin: 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-top: 0;
    flex-wrap: wrap;
}

#signup-page #row-product_id_page-0-0 .am-element > *,
#signup-page #row-paysys_id .am-element > * {
    flex: 1;
    min-width: 200px;
}

#signup-page #row-product_id_page-0-0 .am-element br,
#signup-page #row-paysys_id .am-element br {
    display: none;
}

#signup-page #row-product_id_page-0-0 .am-element label,
#signup-page #row-paysys_id .am-element label {
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin: 10px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
}

#signup-page #row-product_id_page-0-0 .am-element label:hover,
#signup-page #row-paysys_id .am-element label:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

#signup-page #row-product_id_page-0-0 .am-element label span,
#signup-page #row-paysys_id .am-element label span {
    display: block;
    margin: 8px 0px;
}

#signup-page #row-name-0 {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

/* Responsive styles */
@media all and (max-width: 800px) {
    #signup-page #row-paysys_id .am-element-title {
        margin-top: 20px;
        border-top: 1px solid #e5e7eb;
        padding-top: 20px;
    }
    
    #signup-page #row-paysys_id .am-element,
    #signup-page #row-product_id_page-0-0 .am-element {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .am-auth-form.am-form fieldset legend {
        font-size: 1.1rem;
        padding: 1.5em 1rem;
    }
    
    .subscription-welcome {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
}

@media all and (max-width: 900px) {
    #widget-member-main-resources .am-block ul {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media all and (max-width: 700px) {
    #widget-member-main-resources .am-block ul {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .am-form form {
        padding: 1em;
    }
}

@media all and (max-width: 400px) {
    #widget-member-main-resources .am-block ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .navbar-expand-md .navbar-collapse .navbar-nav .nav-link {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .card-img-top {
        height: 140px;
    }
}

/* Sidebar dashboard updates */
.dashboard-sidebar {
    background: #e5dfff;
}

.sidebar-menu li a:hover, 
.sidebar-menu li a.active {
    background: rgba(93, 59, 238, 0.1);
    color: #5d3bee;
}

.sidebar-menu li a.active::before {
    background: #5d3bee;
}

.page-wrapper {
    background: #f5f7fa;
}