html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    font-weight: 300;
    overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    margin: 0;
}

body {
    background: linear-gradient(-215deg, rgb(45, 13, 114), rgb(27, 27, 27));
    background-repeat: no-repeat;
    background-size: 100vw 100vh;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar styles */
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    border-radius: 0px !important;
}

body::-webkit-scrollbar-track {
    background: #2a1a4d;
    border-radius: 0px !important;
}

body::-webkit-scrollbar-thumb {
    background: rgba(80, 48, 155, 0.55);
    border-radius: 0px !important;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 48, 155, 0.75);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 48, 155, 0.55) #2a1a4d;
}

input[type="color"] {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 100px;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

input[type="color" i] {
    border-radius: 4px;
    border: none;
    height: 40px;
    width: 40px;
    display: block;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 30px;
    background: rgba(80, 48, 155, 0.55);
    border-bottom: 2px solid rgba(101, 31, 254, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
}

header h1 {
    font-size: 28px;
    color: white;
}

header #user {
    display: flex;
    align-items: center;
    gap: 12px;
}

header #pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(101, 31, 254, 0.5);
}

header #dname {
    font-size: 18px;
    color: white;
}

header #uname {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Main Layout */
main {
    display: flex;
    min-height: calc(100vh - 70px);
    padding-top: 70px;
}

aside {
    width: 250px;
    background: rgba(45, 13, 114, 0.7);
    border-right: 2px solid rgba(101, 31, 254, 0.3);
    backdrop-filter: blur(8px);
    color: white;
    padding: 20px 0;
}

aside li {
    display: flex;
    align-items: center;
    height: 50px;
    padding-left: 20px;
    list-style: none;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

aside li:hover, aside li.active {
    background: rgba(101, 31, 254, 0.2);
    color: white;
    border-left: 3px solid rgb(101, 31, 254);
    padding-left: 25px;
}

/* Tab Sections */
#tabsections {
    flex: 1;
}
.tabsection {
    width: 100%;
    display: none;
    padding: 30px;
    color: white;
    box-sizing: border-box;
}

.tabsection.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slide 0.3s cubic-bezier(0.28, 0.18, 0.38, 1) forwards;
}

@keyframes slide {
    0% {
        transform: translateX(100%);
    } 
    100% {
        transform: translateX(0);
    }
}

.tabsection h2 {
    font-size: 26px;
    color: white;
    margin-bottom: 20px;
}

/* Overview Section */
#overview .welcome-section {
    background: rgba(80, 48, 155, 0.4);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(101, 31, 254, 0.3);
}

#overview .welcome-section h1 {
    font-size: 28px;
    color: white;
}

#overview .welcome-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

#overview .stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#overview .stat-card {
    background: rgba(80, 48, 155, 0.5);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(101, 31, 254, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

#overview .stat-card:hover {
    border-color: rgb(101, 31, 254);
}

#overview .stat-card h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

#overview .stat-card p {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

#overview .activity-section {
    background: rgba(80, 48, 155, 0.4);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(101, 31, 254, 0.3);
}

#overview .activity-feed {
    list-style: none;
    padding: 0;
}

#overview .activity-feed li {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(101, 31, 254, 0.2);
}

#overview .activity-feed li:last-child {
    border-bottom: none;
}

#overview .received-vouches, #overview .vouch-stats, #overview .current-plan {
    background: rgba(80, 48, 155, 0.4);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(101, 31, 254, 0.3);
}

#overview .received-vouches h2, #overview .vouch-stats h2, #overview .current-plan h2 {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 15px;
}

#overview .vouch-stats p, #overview .current-plan p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

#overview .current-plan .mbut {
    margin-top: 15px;
}

/* Charts Container */
#overview .charts-container {
    display: flex;
}

#vouchAreaChartContainer {
    height: 300px;
    width: 60%;
    border-right: 1px #ffffff21 solid;
    padding-right: 60px;
}

#vouchDoughnutChartContainer {
    height: 300px;
    width: 40%;
    border-left: 1px #ffffff21 solid;
    padding-left: 10px;
}

/* Settings Group */
.settings-group {
    background: rgba(80, 48, 155, 0.4);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(101, 31, 254, 0.3);
    margin-bottom: 2%;
    box-sizing: border-box;
}

.settings-group h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.settings-group label {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

/* #profilecustomization .settings-group:last-child .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
} */

/* Input Styles */
.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(101, 31, 254, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: rgb(101, 31, 254);
    background: rgba(255, 255, 255, 0.1);
}

.input-field.file-input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.input-field.color-input {
    cursor: pointer;
}

.input-field.range-input {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(101, 31, 254, 0.3);
    border-radius: 3px;
    outline: none;
    margin-bottom: 5px !important;
}

.input-field.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: rgb(101, 31, 254);
    border-radius: 50%;
    cursor: pointer;
}

.input-field.range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: rgb(101, 31, 254);
    border-radius: 50%;
    cursor: pointer;
}

textarea.input-field {
    resize: vertical;
    min-height: 100px;
}

/* Profile Customization */

.doublesett {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.input-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.input-row.coloursett {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
}

.halfsec {
    width: 49%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 930px) {
    .halfsec {
        width: 100%;
    }
}

.input-group {
    flex: 1;
    width: 100%;

}

.input-group.coloursett {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* min-width: 150px; */
    gap: 20px;
    /* width: 50%;*/
}

.image-preview {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(101, 31, 254, 0.3);
    margin-bottom: 15px;
    cursor: pointer;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.image-preview:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
}

#bg-image-preview {
    width: 300px;
    height: 150px;
}

.background-type {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    margin-top: 5%;
}

.background-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.background-type input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: rgb(101, 31, 254);
}

/* Buttons */
/* Buttons */
.mbut, .save-btn, .start-btn, .stop-btn {
    height: 100%;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.058);
    outline: none;
    border: solid 1px rgb(255, 98, 245);
    font-weight: 300;
    border-radius: 10px;
    font-size: 18px;
    color: rgb(255, 98, 245);
    cursor: pointer;
    transition: 0.2s;
    align-items: center;
    text-align: center;
}

.mbut:hover, .save-btn:hover, .start-btn:hover, .stop-btn:hover {
    background-color: transparent;
}

.mbut:disabled, .save-btn:disabled, .start-btn:disabled, .stop-btn:disabled {
    color: rgba(255, 98, 245, 0.343);
    border: solid 1px rgba(255, 98, 245, 0.283);
    cursor: not-allowed;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Bot Status */
#bot-status.online {
    color: #00FF00;
    font-weight: bold;
}

.restarting {
    color: #FFA500; /* Orange color for restarting status */
}

#bot-status.offline {
    color: #FF0000;
    font-weight: bold;
}

/* Notifications */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(80, 48, 155, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(101, 31, 254, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 14px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: rgba(0, 128, 0, 0.3);
    border-color: rgba(0, 128, 0, 0.5);
}

.notification.error {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    aside {
        width: 200px;
    }
    .tabsection {
        width: calc(100vw - 200px);
    }
    #overview .stats-section {
        grid-template-columns: 1fr 1fr;
    }
    .input-row {
        flex-direction: column;
    }
    #overview .charts-container {
        flex-direction: column;
    }
    #vouchAreaChartContainer, #vouchDoughnutChartContainer {
        width: 100%;
        border-left: none;
        padding-left: none;
        border-right: none;
        padding-right: none;
    }
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    aside {
        width: 100%;
        padding: 10px 0;
    }
    .tabsection {
        width: 100%;
        padding: 15px;
    }
    #overview .stats-section {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        height: auto;
    }
    header #user {
        flex-direction: row-reverse;
    }
    #overview .charts-container {
        flex-direction: column;
    }
    #vouchAreaChartContainer, #vouchDoughnutChartContainer {
        width: 100%;
        border-left: none;
        padding-left: none;
        border-right: none;
        padding-right: none;
    }
}


/* ---------- Support ---------- */

.sup {
    display: flex;
    gap: 5%;
    max-width: 1600px;

}

.sups {
    width: 50%;
}

.sups:first-child {
    display: flex;
    flex-direction: column;
    gap: 20px;

    
}

.sups:first-child div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(30px);
    color: white;
    padding: 30px 30px;
    border-radius: 8px;
    border: solid 2px rgba(102, 31, 254, 0.471);
    background: linear-gradient(30deg, rgba(82, 48, 155, 0.358), transparent);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    box-sizing: border-box;
    height: fit-content;

}

.sups:first-child div h3 {
    margin: 0;
    font-size: 25px;
}
.sups:first-child div p {
    font-size: 20px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.612);
}

.sups:first-child div button {
    padding: 9px 10px;
    background-color: white;
    outline: none;
    border: solid 3px transparent;
    border-radius: 10px;
    font-size: 17px;
    color: rgb(101, 31, 254);
    cursor: pointer;
    transition: 0.3s;
    align-items: center;
    text-align: center;
}

.sups:first-child div button::before {
    content: ">";
    color: transparent;
    font-size: 0px;
    margin: 0;
    transition: font-size 0.2s, margin 0.2s, color 0.3s;
    transition-delay: 0s, 0s, 0.3s;
}

.sups:first-child div button:hover::before {
    margin-right: 10px;
    font-size: 18px;
    color: rgb(101, 31, 254);
}

.sups:last-child {
    color: white;

}

.sups:last-child h4 {
    margin: 0;
    font-size: 25px;
    margin-bottom: 15px;
}
.sups:last-child p {
    padding-left: 25px;
    font-size: 18px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.566);
    margin-bottom: 20px;
}

.canvasjs-chart-tooltip > div {
    border-radius: 10px !important;
    background-color: #232128;
    color: #d037ff;
}