/* ===== MODERN AFFILIATES GLASSMORPHISM DESIGN ===== */

.my-wallet {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08)) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 30px !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15) !important;
    text-align: center !important;
    position: relative !important;
}

.my-wallet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6) !important;
    border-radius: 16px 16px 0 0 !important;
}

.my-wallet p {
    margin-bottom: 8px !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.my-wallet h3 {
    font-size: 36px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 0 !important;
}

.wallet-card-group {
    display: -ms-grid;
    display: grid;
    grid-gap: 20px;
    -ms-grid-columns: (minmax(200px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    -ms-grid-rows: auto;
    grid-template-rows: auto
}

.wallet-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.8)) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    text-align: center !important;
    transition: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4) !important;
}

.wallet-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9)) !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    transform: none !important;
    transition: none !important;
}

.wallet-card:hover p,
.wallet-card:hover h3 {
    color: inherit !important;
    transition: none !important;
}

.wallet-card p {
    margin-bottom: 12px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

.wallet-card h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0 !important;
    transition: none !important;
}

.wallet-card p,
.wallet-card h3 {
    transition: none !important;
}

.add-wallet p {
    margin-bottom: 10px
}

.wallet-form input {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: none !important;
}

.wallet-form input:focus,
.wallet-form input:focus-within {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
    transition: none !important;
}

.wallet-form button {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    transition: none !important;
}

.wallet-form button:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5) !important;
    transform: none !important;
    transition: none !important;
}

.wallet-suggest {
    margin-top: 15px;
    padding: 0px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
}

.wallet-suggest h6 {
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
    text-transform: uppercase
}

.wallet-suggest ul li {
    margin-right: 5px;
    margin-bottom: 8px;
    display: inline-block
}

.wallet-suggest ul li a {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    line-height: 22px;
    border-radius: 4px;
    color: var(--text);
    background: var(--chalk);
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s
}

.wallet-suggest ul li a:hover {
    color: var(--white);
    background: var(--primary)
}

.table {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(249, 250, 251, 0.7)) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 0 !important;
}

.table>:not(:last-child)>:last-child>* {
    border-bottom-color: rgba(59, 130, 246, 0.1) !important;
}

.table thead tr {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05)) !important;
}

.table thead th {
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #374151 !important;
    padding: 16px 20px !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.table tbody tr th,
.table tbody tr td {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    padding: 14px 20px !important;
    border-color: rgba(59, 130, 246, 0.08) !important;
    background: transparent !important;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.03) !important;
}

.table tbody tr th {
    border-right: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.table .fw-bold {
    font-weight: 600 !important;
}

.bottom-paginate {
    border-top: none !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-top: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bottom-paginate .page-info {
    color: #6b7280 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .table {
        overflow-x: scroll
    }
}

@media (max-width: 575px) {
    .wallet-suggest {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column
    }

    .wallet-suggest h6 {
        margin: 0px 0px 10px
    }
}

/* ===== MODERN CONTAINER & BUTTONS STYLING ===== */

.account-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9)) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    padding: 32px !important;
    position: relative !important;
    overflow: hidden !important;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #10b981) !important;
    border-radius: 20px 20px 0 0 !important;
}

.account-title {
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.footer-social {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-social li a {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(156, 163, 175, 0.3) !important;
    border-radius: 10px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: none !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.footer-social li a:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #6b7280 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: none !important;
    transition: none !important;
}

.shop-widget-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: none !important;
    min-height: 40px !important;
    max-height: 40px !important;
    white-space: nowrap !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.shop-widget-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    color: white !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
    transform: none !important;
    transition: none !important;
    text-decoration: none !important;
}

.shop-widget-btn i {
    font-size: 11px !important;
    flex-shrink: 0 !important;
}

.shop-widget-btn span {
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.form-select {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.form-select:focus {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.filter-label {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.top-filter {
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.empty-state {
    text-align: center !important;
    padding: 40px 20px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    margin: 20px 0 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.empty-state p {
    color: #6b7280 !important;
    font-weight: 500 !important;
    margin-top: 16px !important;
}

.table-scroll {
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 16px 0 !important;
}

/* Inputs adicionales */
input.js-flatpickr,
input[type="text"] {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: none !important;
}

input.js-flatpickr:focus,
input[type="text"]:focus {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
    transition: none !important;
}

/* Paginación moderna */
.pagination {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.pagination a,
.pagination span {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: none !important;
    min-width: 36px !important;
    text-align: center !important;
}

.pagination a:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #3b82f6 !important;
    transform: none !important;
    transition: none !important;
}

.pagination .current,
.pagination .active {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .account-card {
        padding: 24px !important;
    }
    
    .my-wallet {
        padding: 20px !important;
    }
    
    .wallet-card {
        padding: 20px !important;
    }
    
    .wallet-card h3 {
        font-size: 20px !important;
    }
    
    .my-wallet h3 {
        font-size: 28px !important;
    }
    
    .top-filter {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .footer-social {
        gap: 8px !important;
    }
    
    .footer-social li a {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}

/* ===== LOGS PAGE SPECIFIC STYLING ===== */

/* Toggle buttons for device info */
a[id^="read-more"],
a[id^="read-hide"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05)) !important;
    color: #3b82f6 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: none !important;
    cursor: pointer !important;
    display: inline-block !important;
}

a[id^="read-more"]:hover,
a[id^="read-hide"]:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.08)) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: none !important;
    transition: none !important;
    text-decoration: none !important;
}

/* Hidden device info */
p[id^="hidden"] {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin: 4px 0 !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    word-break: break-all !important;
    line-height: 1.4 !important;
}

/* Form controls específicos para logs */
.form-control {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: none !important;
}

.form-control:focus {
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
    transition: none !important;
}

.form-control::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* Table wrapper específico para logs */
.table-wrapper {
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 16px 0 !important;
}

/* Mejoras específicas para la tabla de logs */
.table tbody tr td:last-child {
    white-space: nowrap !important;
}

.table tbody tr td {
    vertical-align: middle !important;
}

/* Content reverse para sidebar */
.content-reverse {
    display: flex !important;
    flex-direction: row-reverse !important;
}

@media (max-width: 991px) {
    .content-reverse {
        flex-direction: column !important;
    }
}

/* Sidebar spacing */
.col-lg-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.col-lg-9 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Action column específica */
.table tbody tr td:nth-child(2) {
    max-width: 300px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* IP column */
.table tbody tr td:nth-child(3) {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: #6366f1 !important;
    font-weight: 600 !important;
}

/* Time column */
.table tbody tr td:first-child {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Layout específico para formulario de logs */
.account-card .row .col-lg:nth-child(1) {
    flex: 0 0 12% !important;
    max-width: 12% !important;
}

.account-card .row .col-lg:nth-child(2) {
    flex: 0 0 22% !important;
    max-width: 22% !important;
}

.account-card .row .col-lg:nth-child(3) {
    flex: 0 0 18% !important;
    max-width: 18% !important;
}

.account-card .row .col-lg:nth-child(4) {
    flex: 0 0 18% !important;
    max-width: 18% !important;
}

.account-card .row .col-lg:nth-child(5),
.account-card .row .col-lg:nth-child(6) {
    flex: 0 0 15% !important;
    max-width: 15% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Espaciado para todas las columnas del formulario */
.account-card .row .col-lg {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Margen para la fila de filtros */
.account-card .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
    margin-bottom: 16px !important;
}

/* Responsive improvements for logs table */
@media (max-width: 768px) {
    .table {
        font-size: 12px !important;
    }
    
    .table tbody tr td {
        padding: 10px 8px !important;
    }
    
    .table thead th {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    a[id^="read-more"],
    a[id^="read-hide"] {
        padding: 3px 6px !important;
        font-size: 11px !important;
    }
    
    p[id^="hidden"] {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    .form-control {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    /* En móvil volver a columnas automáticas */
    .account-card .row .col-lg:nth-child(1),
    .account-card .row .col-lg:nth-child(2),
    .account-card .row .col-lg:nth-child(3),
    .account-card .row .col-lg:nth-child(4) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .account-card .row .col-lg:nth-child(5),
    .account-card .row .col-lg:nth-child(6) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 8px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .shop-widget-btn {
        font-size: 11px !important;
        padding: 10px 8px !important;
    }
}

/* ===== SIDEBAR MODERN STYLING ===== */

.sidebar_profile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(249, 250, 251, 0.6)) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    display: block !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: none !important;
}

.sidebar_profile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6) !important;
    opacity: 0;
    transition: none !important;
}

.sidebar_profile:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.8)) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.1) !important;
    transform: none !important;
    transition: none !important;
    text-decoration: none !important;
}

.sidebar_profile:hover::before {
    opacity: 1;
}

.sidebar_profile.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05)) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15) !important;
}

.sidebar_profile.active::before {
    opacity: 1;
    background: linear-gradient(180deg, #3b82f6, #6366f1) !important;
    width: 4px;
}

.sidebar_profile h6 {
    margin: 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.sidebar_profile.active h6 {
    color: #3b82f6 !important;
}

.sidebar_profile h6 i {
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6b7280 !important;
    font-size: 16px !important;
}

.sidebar_profile.active h6 i {
    color: #3b82f6 !important;
}

.sidebar_profile h6 span {
    flex: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Logout button specific styling */
.sidebar_profile[onclick="logout()"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05)) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.sidebar_profile[onclick="logout()"]::before {
    background: linear-gradient(180deg, #ef4444, #dc2626) !important;
}

.sidebar_profile[onclick="logout()"] h6 {
    color: #dc2626 !important;
}

.sidebar_profile[onclick="logout()"] h6 i {
    color: #ef4444 !important;
}

.sidebar_profile[onclick="logout()"]:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08)) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.15) !important;
}

/* Responsive sidebar */
@media (max-width: 991px) {
    .sidebar_profile {
        padding: 12px 16px !important;
        margin-bottom: 8px !important;
    }
    
    .sidebar_profile h6 {
        font-size: 13px !important;
        gap: 10px !important;
    }
    
    .sidebar_profile h6 i {
        width: 16px !important;
        height: 16px !important;
        font-size: 14px !important;
    }
}

/* ===== FORM STYLING FOR CHANGE-PASSWORD & SECURITY PAGES ===== */

.profile-part .account-title h4 {
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.profile-part .form-group {
    margin-bottom: 24px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.profile-part .form-group.row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.profile-part .form-group.row .col-xl-6:first-child {
    flex: 1 !important;
    max-width: calc(100% - 80px) !important;
    padding-right: 20px !important;
    text-align: left !important;
}

.profile-part .form-group.row .col-xl-6:last-child {
    flex: 0 0 60px !important;
    max-width: 60px !important;
    padding-left: 0 !important;
    text-align: right !important;
    margin-left: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 99 !important;
}

.profile-part .form-label {
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
}

.profile-part .form-label b {
    color: #3b82f6 !important;
    margin-left: 4px !important;
}

/* ===== MODERN SWITCH STYLING ===== */

.switch {
    position: relative !important;
    display: inline-block !important;
    width: 54px !important;
    height: 30px !important;
    z-index: 100 !important;
}

.switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.8), rgba(107, 114, 128, 0.6)) !important;
    transition: none !important;
    border-radius: 30px !important;
    border: 1px solid rgba(156, 163, 175, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 101 !important;
}

.slider:before {
    position: absolute !important;
    content: "" !important;
    height: 22px !important;
    width: 22px !important;
    left: 3px !important;
    top: 3px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9)) !important;
    transition: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    z-index: 102 !important;
}

input:checked + .slider {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.8)) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

input:focus + .slider {
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.4),
        0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

input:checked + .slider:before {
    transform: translateX(24px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(249, 250, 251, 0.95)) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* ===== FORM BUTTONS STYLING ===== */

.profile-part .form-btn,
.profile-part #btnChangeSecurity,
.profile-part .btn-save,
.profile-part #btnSave2FA {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.95)) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 16px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 
        0 12px 32px rgba(16, 185, 129, 0.4),
        0 4px 12px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: none !important;
    min-width: 160px !important;
    min-height: 48px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.profile-part .form-btn:hover,
.profile-part #btnChangeSecurity:hover,
.profile-part .btn-save:hover,
.profile-part #btnSave2FA:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(4, 120, 87, 1)) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 
        0 16px 40px rgba(16, 185, 129, 0.5),
        0 6px 16px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    transform: none !important;
    transition: none !important;
}

.profile-part .form-btn:disabled,
.profile-part #btnChangeSecurity:disabled,
.profile-part .btn-save:disabled,
.profile-part #btnSave2FA:disabled {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.7), rgba(107, 114, 128, 0.8)) !important;
    border-color: rgba(156, 163, 175, 0.3) !important;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.2) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== QR CODE SECTION STYLING ===== */

#qr_2fa {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-top: 20px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    text-align: center !important;
    position: relative !important;
    z-index: 50 !important;
}

#qr_2fa svg {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    padding: 8px !important;
    margin-bottom: 16px !important;
}

.input-style,
.profile-part #secret {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    transition: none !important;
    width: 100% !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
}

.input-style:focus,
.profile-part #secret:focus {
    border-color: rgba(59, 130, 246, 0.5) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.2),
        0 2px 8px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
    transition: none !important;
}

/* ===== SECURITY INSTRUCTIONS STYLING ===== */

.profile-part small {
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    display: block !important;
    margin-top: 20px !important;
    font-size: 13px !important;
}

/* ===== CENTER BUTTONS ===== */

.profile-part center {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(59, 130, 246, 0.1) !important;
    display: flex !important;
    justify-content: center !important;
}