/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #121212;
    line-height: 1.5;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

header.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f1f1f;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 50px;
    margin-right: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ca1c1c;
}

.dashboard-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Parent container for the cards */
.plan-selection {
    display: flex; /* Enables horizontal alignment */
    flex-direction: row; /* Ensures the elements are aligned in a row */
    gap: 20px; /* Adds spacing between the buttons */
    justify-content: center; /* Centers the row horizontally */
    align-items: center; /* Aligns items vertically if their heights differ */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    margin: 20px auto; /* Centers the section and adds spacing */
}

/* Individual buttons for selecting plans */
.plan-selection .button.select-plan {
    background-color: #ca1c1c;
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    flex: 0 1 auto; /* Ensures buttons take the space they need */
    min-width: 150px; /* Minimum width for each button */
}

/* Hover effect for buttons */
.plan-selection .button.select-plan:hover {
    background-color: #e02d2d;
    color: #fff;
}


.subscription-details, .vpn-download, .buy-subscription {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.subscription-card, .download-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

.subscription-card p, .download-card p {
    margin: 0;
    color: #bdbdbd;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background: #ca1c1c;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #ff3b3b;
}

.dashboard-footer {
    text-align: center;
    padding: 10px 20px;
    background: #1f1f1f;
    border-top: 1px solid #333;
}

.dashboard-footer a {
    color: #ca1c1c;
    transition: color 0.3s ease;
}

.dashboard-footer a:hover {
    color: #ff3b3b;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #ff3b3b;
}

.button.log-out {
    background-color: #ca1c1c; /* Red for logout */
}

.button.log-out:hover {
    background-color: #ff3b3b; /* Darker red on hover */
}

.button.go-home {
    background-color: #ca1c1c; /* Blue for home */
}

.button.go-home:hover {
    background-color: #ff3b3b; /* Darker blue on hover */
}


@media (max-width: 768px) {
    header.dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-main {
        padding: 10px;
    }
}
