:root {
    --sidebar-width: 200px;
    --padding: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: scroll;
}


/* modify global class */
nav,
ul.nav-links {
    width: min-content;
    flex-grow: 0;
}

/* header,
header.absolute {
    position: fixed;
} */

footer {
    position: relative;
    bottom: 0;
    top:100vh;
    /* width: 100vw; */
    margin-top: 0;
}

.cta-button {
    margin-top: 0;
}

.cta-button:hover {
    transform: none;
}

#pricing {
    justify-content: space-between;
    gap: var(--padding);
    margin-top: var(--padding);
    margin-bottom: calc(var(--padding)*2);
}

.price-card {
    padding: 10px;
    /* width: 10em; */

    border: #cccccc1b 1px solid;
    box-shadow: 0 0 3px rgba(0,0,0,.4);
    box-shadow: none;

    /* secondary style */
    border: none;
    background: none;
    box-shadow: none;
}

.price-card *,
.price-card h3 {
    margin: 5px 0;
    width: auto;
    opacity: 0.6;
}

.price-card h3 {
    font-size: 1em;
    color: var(--text-color);
}

.price-card i {
    font-size: 2em;
    /* color: white; */
    opacity: .4;
}


.price-card:nth-child(1) i {
    color: var(--accent-color);
}

.price-card:nth-child(2) i {
    color: red;
}

/* last child */
.price-card:nth-child(3) i {
    color: green;
}

.c {
    display: flex;
    position: absolute;
    height: 80vh;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 30px;
    background: var(--card-bg);
}


.sidebar {
    /* position: fixed; */
    width: var(--sidebar-width);
    height: inherit;
    background-color: var(--secondary-bg);
    padding: var(--padding);

    /* secondary style */
    background-color: inherit;
    border-right: 1px solid #cccccc1b;
    padding: 0;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;

    /* secondary style */
    margin-bottom: 0;
}

.sidebar-links li i {
    margin-right: 10px;
}

.main {
    flex: 1;
    padding: calc(var(--padding)*2);
    height: inherit;
    /* overflow-y: none; */

    /* secondary style */
    padding: 0;
    box-shadow: -4px 0 0 0 rgba(0, 0, 0, 0.1);
}



/* secondary style */
.main .title *,
.main .card > * {
    margin: calc(var(--padding)/2) var(--padding);
}


.title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title h1 {
    margin: 0; /* Remove default margin */
    white-space: nowrap; /* Prevent wrapping */
}


h1 {
    font-size: 2em;
    color: white;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2a5288;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;

    /* secondary style */
    background-color: inherit;
    border-radius: 0;
    padding: 0;
    margin: var(--padding) 0;
    border-top: #333333 1px solid;
}

.card h2 {
    color: white;
    margin-bottom: 10px;
}

input[type="text"].readonly {
    width: calc(100% - var(--padding)*2);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.name-inputs {
    display: flex;
    justify-content: space-between;
}

.name-inputs div {
    width: 48%;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.sidebar-links li {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;

    /* secondary style */
    border-radius: 0;
}

.sidebar-links li:hover {
    background-color: #3958824b;
    color: white;
}

.sidebar-links li.active {
    color: white;
    background-image: linear-gradient(to right, var(--accent-color) 100%, var(--card-bg) 100%);
    background-size: 5px 100%;
    background-repeat: no-repeat;
    transition: background-size 200ms ease-out;
}

.sidebar-links li.active:hover {
    background-size: 100% 100%;
    color: white;
}



#content-area {
    width: 100%;
}

form input[type="password"],
form button {
    display: block;
    width: 500px;
    /* margin-right: 200px; */
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

form button {
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
}

table {
    width: calc(100% - var(--padding)*2);
    border-collapse: collapse;
}


table th, table td {
    padding: 10px;
    border: 1px solid #cccccc1b;
    text-align: left;
}

table th {
    background-color: var(--accent-color);
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.121);
}

table th:last-child {
    border-right: none;
}

input[type="password"] {
    background-color: #333333;
    color: #ffffff;
}

.steamcard {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: calc(var(--padding)/2);
    gap: calc(var(--padding)/2);
    border-radius: 5px;
    background-color: var(--card-bg);
    margin-bottom: 10px;
    transition: 200ms ease-in-out;
}

.steamcard:hover {
    background-color: var(--secondary-bg);
    cursor: pointer;
}

.steamcard img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* select second dov inside .steamcard */
.steamcard > :nth-child(2) {
    line-height: 1;
    font-size: .9em;
}

.steamcard .status {
    margin-left: auto;
    /* opacity: 0.5; */
    filter: grayscale(50%);
    background: rgba(255, 0, 0, 0.23);
    padding: .4em;
    border-radius: 10px;
    font-weight: 600;
}

.status.green {
    color: rgb(0, 255, 0);
    background: rgba(0, 255, 0, 0.23);
}

.status.red {
    color: red;
    background: rgba(255, 0, 0, 0.23);
}


/* mobile responsive */
@media screen and (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    .c {
        margin-top: 0px;
    }

    .nav-links {
        display: none;
        display: flex;
        flex-direction: row;
        gap: 5px;
    }

    /* last child */
    .nav-links li:last-child {
        display: none;
    }

    .sidebar {
        width: auto;
    }

    .sidebar-links li i {
        margin: 0;
    }

    .sidebar-links li a {
        display: none;
    }

    
    header.absolute {
        position: relative;
    }
    
    footer,
    footer.absolute {
        position: relative;
        margin-top: auto;
        margin-bottom: 0;
        bottom: 0;
        width: auto;
        /* padding: 0; */
        /* margin: 0; */
        top: auto;
    }
    
    header {
        border-bottom: 1px solid #cccccc1b;
    }

    .c {
        display: flex;
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0, 0);
        /* border-bottom: 1px solid #cccccc1b; */
        box-shadow: 0 20px 20px var(--secondary-bg);
    }

    form input[type="password"],
    form button {
        width: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-img-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease-in-out;
}

/* Pencil icon container */
.edit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px; /* Adjust size of pencil icon */
    color: white;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.1s ease-in-out;
}

/* Hover effect */
.profile-img-container:hover .profile-img {
    filter: grayscale(80%); /* Grayscale effect */
}

.profile-img-container:hover .edit-icon {
    opacity: 1; /* Show the pencil on hover */
}
