/* Base Reset and Body Styling */
* {
    font-family: sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    background-color: #444;
    color: white; padding: 15px;
    font-size: 18px;
    font-weight: bold;
}

#login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 400px;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 15px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    box-sizing: border-box;
}
#login label {
    align-content: start;
}

#login input {
    width: 100%;
    height: 35px;
    line-height: 35px;
    box-sizing: border-box;
    direction: ltr;
    padding: 7px;
}

#login button {
    width: 100%;
    box-sizing: border-box;
    background: mediumturquoise;
    color: #f4f4f4;
    font-size: 16px;
    border:1px solid #f0f0f0;
}

/* Tabs Navigation */
.tabs {
    display: flex;
    background: #333;
    color: white;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
}
.tab.active {
    background: #555;
}

/* Tab Panels */
.panel {
    padding: 20px;
    display: none;
}
.panel.active {
    display: block;
}

/* Rows (for Users and Subscribers) */
.user-row,
.sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
}
.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* Action Buttons */
.panel button {
    margin-left: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 10px;
}

/* Input Styling */
input[type="text"] {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box; /* Prevents overflow by including padding in width */
}

/* Dropdowns and Buttons */
select,
button {
    padding: 5px;
}

[id^="users-"] {

}

.filter button:first-of-type {
    font-weight: bold;
}

#export button {
    text-align: center;
}
#export button span {
    font-weight: bold;
}

.loading {
    display: none;
    width: 20px;
    vertical-align: middle;
    margin-right: 3px;
}

/* Responsive Layout for Mobile */
@media (max-width: 900px) {
    .user-row,
    .sub-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .user-info {
        text-align: center;
    }
}
