/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout */
body {
    font-family: 'Figtree';
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #ffffff;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

/* Logo / Title */
.sidebar h2 {
    color: #3b82f6;
    margin-bottom: 25px;
    font-size: 30px;
}

/* Menu */
.menu a {
    display: block;
    color: rgb(111, 111, 111);
    text-decoration: none;
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 100;
}

.menu a:hover {
    background: #6366f1;
    padding-left: 15px;
    color: white;
}

/* Logout */
.logout {
    background: rgb(255, 91, 91);
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    color: white;
}

/* Content */
.content {
    flex: 1;
    padding: 30px;
    background: #f1f5f9;
}

/* Table */
table {
    margin-top: 8px;
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

th {
    font-weight: 200;
    padding: 20px 5px 20px 25px;
    position: sticky;
    top: 0;
    color: #15151bb3;
    z-index: 2;
    text-align: left;
}

td {
    padding: 10px 25px;
    border-top: 1px solid #ddd;
    text-align: left;
    color: #2f2b3db3;
    font-weight: 400;
    font-size: 15px;
}

/* Form */

.regis {
    padding: 10px;
    margin-bottom: 20px;
}

input {
    display:grid;
    width: 25%;
    padding: 15px;
    margin: 20px 0px 20px 0px;
}

select {
    color: #6c6c6c;
    display:grid;
    width: 25%;
    padding: 15px;
    margin: 20px 0px 20px 0px;
}


button {
    display: block;
    width: 25%;
    padding: 15px;
    background: #6366f1;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;

}

.active {
    background: #6366f1;
}

td a {
    text-decoration: none;
    margin: 0 5px;
    font-size: 15px;
}

h4 {
    color: #a6a6a6;
    margin-bottom: 10px;
    margin-top: 40px;
    font-weight: 400;
}

.profile-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
}

.profile-box p {
    margin: 10px 0;
}

.custom-dropdown {
    position: relative;
    width: 25%;
    margin: 20px 0px;
}

.dropdown-selected {
    font-size:small;
    color: #6c6c6c;
    padding: 15px;
    border: 1px solid #6b6b6b;
    border-radius: 4px;
    cursor: pointer;
    background: white;
}

.dropdown-menu {
    display: none;
    position: absolute;
    width: 50%;
    background: white;
    border: 1px solid #b2b2b2;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 10;
}

.dropdown-menu.show {
    display: block;
}

#searchInput {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
}

.dropdown-items {
    max-height: 150px;
    overflow-y: auto;
}

.item {
    padding: 10px;
    cursor: pointer;
}

.item:hover {
    background: #f1f5f9;
}


/* ===== PROFILE PAGE ===== */

.profile-page {
    display: flex;
    gap: 25px;
    padding: 25px;
}

/* LEFT CARD */
.profile-card {
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.avatar {
    width: 90px;
    height: 90px;
    background: #bfe3e8;
    border-radius: 50%;
    line-height: 90px;
    font-size: 28px;
    font-weight: bold;
    margin: auto;
}

.profile-card h2 {
    margin: 12px 0;
}

/* STATUS */
.badge.active {
    background: #22c55e;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 13px;
}

/* LOGIN BUTTON */
.login-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* STATS */
.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stats div strong {
    font-size: 18px;
}

.details {
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    color: #555;
}

/* RIGHT SIDE */
.profile-content {
    flex: 1;
}

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tabs button {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.tabs .active {
    background: #6366f1;
    color: white;
}

/* MEMBERS BOX */
.members-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BUTTON */
.add-btn {
    background: #6366f1;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
}

/* TABLE */
.members-box table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.members-box th {
    text-align: left;
    padding: 12px;
    color: #252525;
    font-weight: 500;
}

.members-box td {
    padding: 12px;
    border-top: 1px solid #eee;
}

/* STUDENT NAME */
.student-name {
    color: #4f46e5;
    font-weight: 500;
}

/* STATUS */
.status {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

.status.active {
    background: #22c55e;
}

.status.suspended {
    background: #ef4444;
}

/* OPTIONS */
.options {
    width: 30px;
    height: 30px;
    background: #0b8800;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.stots-card {
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
    padding: 20px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.stot-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;  /* 🔥 أهم سطر */
    color: #2f2b3db3;

}
.stot-item strong {
    font-weight: 500;
    margin-left: 3px;
}

/* الدائرة */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* الألوان */
.stot-item.all .dot { background: #6366f1; }
.stot-item.new .dot { background: #3b82f6; }
.stot-item.ctive .dot { background: #22c55e; }
.stot-item.trial .dot { background: #f59e0b; }
.stot-item.suspended .dot { background: #ef4444; }


.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 20px 12px 20px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    transition: 0.3s;
}

/* focus */
.search-box input:focus {
    border-color: #9c9dfb;
    background: white;
}

/* icon */
.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
}