/* ================================
   SOCIETIES PAGE
================================ */

.campus-page {
    width: 100%;
    padding: 25px;
}

.campus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.campus-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 7px;
}

.campus-header p {
    color: #777;
    font-size: 14px;
}

.create-society-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #6c4cf1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.society-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 20px;
}

.society-search input {
    width: 100%;
    border: none;
    outline: none;
    font: inherit;
}

.society-categories,
.society-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.society-category,
.society-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-weight: 600;
}

.society-category.active,
.society-tab.active {
    background: #6c4cf1;
    color: #fff;
    border-color: #6c4cf1;
}

.society-section {
    width: 100%;
}

.societies-grid,
.my-societies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.society-empty-state {
    text-align: center;
    padding: 55px 20px;
    color: #777;
}

.society-empty-state i {
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    color: #6c4cf1;
}

.society-empty-state h3 {
    color: #222;
    margin-bottom: 8px;
}

.society-empty-state p {
    font-size: 14px;
}

/* Mobile */

@media (max-width: 768px) {
    .campus-page {
        padding: 15px;
    }

    .campus-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .campus-header h1 {
        font-size: 23px;
    }

    .create-society-btn {
        width: 100%;
        justify-content: center;
    }

    .societies-grid,
    .my-societies-grid {
        grid-template-columns: 1fr;
    }
}

/* Society Cards */

.society-card {
    background: #fff;
    border: 1px solid #e8e8ef;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.society-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.society-logo {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    background: #f0edff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.society-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.society-logo i {
    width: 48px;
    height: 48px;
    color: #6c4cf1;
}

.society-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 9px;
}

.society-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.society-card-category {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px 0 12px;
    border-radius: 20px;
    background: #f0edff;
    color: #6c4cf1;
    font-size: 12px;
    font-weight: 700;
}

/* CREATE SOCIETY MODAL */

.society-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.society-modal-overlay.active {
    display: flex;
}

.society-modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: societyModalOpen 0.25s ease;
}

.society-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.society-modal-header h2 {
    font-size: 23px;
    color: #1e293b;
    margin: 0;
}

.society-modal-header button {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
}

.society-form-field {
    margin-bottom: 20px;
}

.society-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.society-form-field input,
.society-form-field textarea,
.society-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.society-form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.society-form-field input:focus,
.society-form-field textarea:focus,
.society-form-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-society-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-society-btn:hover {
    background: #1d4ed8;
}

@keyframes societyModalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .society-modal {
        padding: 22px 18px;
    }

    .society-modal-header h2 {
        font-size: 20px;
    }
}

.join-society-btn {
    width: 100%;
    padding: 11px 16px;
    margin-top: 14px;
    border: none;
    border-radius: 8px;
    background: #6c4cff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.join-society-btn:hover:not(:disabled) {
    background: #5638df;
}

.join-society-btn:disabled {
    background: #e5e5e5;
    color: #555;
    cursor: not-allowed;
}

/* President society management */

.manage-society-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.manage-society-card h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
    color: #222;
}

.society-pending-requests {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.society-request-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    background: #f8f9fc;
    border-radius: 9px;
}

.society-request-card h4 {
    margin: 0;
    flex: 1;
    min-width: 120px;
}

.society-request-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.society-request-card button {
    border: none;
    border-radius: 7px;
    padding: 9px 15px;
    font-weight: 600;
    cursor: pointer;
}

.society-request-card button:first-of-type {
    background: #16a34a;
    color: white;
}

.society-request-card button:last-of-type {
    background: #fee2e2;
    color: #b91c1c;
}

.society-request-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.society-request-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.society-request-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.society-request-status.approved {
    background: #dcfce7;
    color: #166534;
}

.society-request-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.society-role-select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.society-role-select:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.update-society-role-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background: #6c4cff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.update-society-role-btn:hover:not(:disabled) {
    background: #5638df;
}

.update-society-role-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.society-members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.society-member-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    background: #f8f9fc;
    border-radius: 9px;
}

.society-member-card h4 {
    margin: 0;
    min-width: 120px;
    flex: 1;
}

.society-member-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.remove-society-member-btn {
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remove-society-member-btn:hover:not(:disabled) {
    background: #fecaca;
}

.remove-society-member-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* PRIVATE SOCIETY CHAT MODAL */
.society-chat-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
}

.society-chat-overlay.active {
    display: flex;
}

.society-chat-modal {
    display: flex;
    flex-direction: column;
    width: min(600px, 94vw);
    height: min(700px, 85vh);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.society-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.society-chat-header h2 {
    margin: 0;
    font-size: 19px;
}

.society-chat-header p {
    margin: 5px 0 0;
    color: #777;
    font-size: 13px;
}

.society-chat-header button {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.society-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: #f8f9fc;
}

.society-chat-placeholder {
    text-align: center;
    color: #888;
    margin-top: 30px;
}

.society-chat-form {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #e5e7eb;
}

.society-chat-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.society-chat-form input:focus {
    border-color: #6c4cff;
}

.society-chat-form button {
    width: 45px;
    border: none;
    border-radius: 8px;
    background: #6c4cff;
    color: white;
    cursor: pointer;
}

.society-chat-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =================================
   SOCIETY TEAM MANAGEMENT
================================= */

.society-teams-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8ef;
}

.society-teams-section h4 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.society-teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 18px;
}

.society-team-card {
    background: #f8f7ff;
    border: 1px solid #e5e0ff;
    border-radius: 12px;
    padding: 16px;
}

.society-team-card h5 {
    font-size: 15px;
    color: #33256f;
    margin-bottom: 8px;
}

.society-team-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.create-team-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.create-team-form input,
.create-team-form select {
    flex: 1;
    min-width: 150px;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    font: inherit;
    outline: none;
}

.create-team-form input:focus,
.create-team-form select:focus {
    border-color: #6c4cf1;
}

.create-team-form button {
    padding: 11px 17px;
    border: none;
    border-radius: 9px;
    background: #6c4cf1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.create-team-form button:hover {
    background: #5638df;
}

@media (max-width: 600px) {
    .society-teams-container {
        grid-template-columns: 1fr;
    }

    .create-team-form {
        flex-direction: column;
    }

    .create-team-form input,
    .create-team-form select,
    .create-team-form button {
        width: 100%;
    }
}

/* Society Teams */
.society-teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.society-team-card {
    background: #f8faff;
    border: 1px solid #dce5f5;
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.society-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.society-team-card h4 {
    margin: 0 0 10px;
    color: #243b70;
    font-size: 17px;
    font-weight: 700;
}

.society-team-card p {
    margin: 6px 0;
    color: #64748b;
    font-size: 13px;
}

.society-teams-list:empty {
    display: none;
}

/* Society Teams Heading */
.society-teams-list {
    margin-top: 12px;
}

.society-teams-list::before {
    content: "";
    display: block;
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 15px;
}

.society-teams-list + * {
    margin-top: 10px;
}

.society-teams-list h4 {
    color: #243b70;
    font-size: 16px;
    font-weight: 700;
}

/* Open Leadership Chat Button */
.my-societies-grid .society-card > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 18px;
    margin-top: 15px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #6c4cf1, #4776e6);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(108, 76, 241, 0.22);
    transition: all 0.25s ease;
}

.my-societies-grid .society-card > button:hover {
    background: linear-gradient(135deg, #5638df, #315dcc);
    transform: translateY(-2px);
    box-shadow: 0 7px 17px rgba(108, 76, 241, 0.3);
}

.my-societies-grid .society-card > button:active {
    transform: scale(0.98);
}

.my-societies-grid .society-card > button:focus-visible {
    outline: 3px solid rgba(108, 76, 241, 0.3);
    outline-offset: 3px;
}

/* =================================
   OPEN TEAM CHAT BUTTON
================================= */

.society-team-card .open-team-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 16px;

    border: none;
    border-radius: 9px;

    background: linear-gradient(135deg, #6c4cf1, #4776e6);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;

    cursor: pointer;
    box-shadow: 0 4px 11px rgba(108, 76, 241, 0.18);
    transition: all 0.25s ease;
}

.society-team-card .open-team-chat-btn::before {
    content: "💬";
    font-size: 15px;
}

.society-team-card .open-team-chat-btn:hover {
    background: linear-gradient(135deg, #5638df, #315dcc);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(108, 76, 241, 0.28);
}

.society-team-card .open-team-chat-btn:active {
    transform: scale(0.98);
}

.society-team-card .open-team-chat-btn:focus-visible {
    outline: 3px solid rgba(108, 76, 241, 0.3);
    outline-offset: 3px;
}

.team-allocation-form {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.team-member-select {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    margin: 10px 0;
}

.assign-team-members-btn,
.remove-team-member-btn {
    padding: 8px 14px;
    cursor: pointer;
}

.team-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.team-assigned-members {
    margin-bottom: 15px;
}

/* =========================================
SOCIETY TEAM MANAGEMENT
========================================= */

.society-teams-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 22px;
margin-top: 20px;
}

.society-team-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 16px;
padding: 22px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.society-team-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.society-team-card h4 {
font-size: 19px;
font-weight: 700;
color: #1f2937;
margin: 0 0 10px;
}

.society-team-card > p {
color: #6b7280;
font-size: 14px;
margin-bottom: 20px;
}

.society-team-card h5 {
font-size: 15px;
font-weight: 650;
color: #374151;
margin: 18px 0 10px;
}

/* =========================================
ASSIGNED MEMBERS
========================================= */

.team-assigned-members {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 18px;
}

.team-member-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: #f8fafc;
border: 1px solid #edf0f4;
border-radius: 9px;
}

.team-member-row span {
color: #374151;
font-size: 14px;
font-weight: 500;
overflow-wrap: anywhere;
}

.remove-team-member-btn {
flex-shrink: 0;
padding: 6px 11px;
border: 1px solid #fecaca;
border-radius: 7px;
background: #fff1f2;
color: #dc2626;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
}

.remove-team-member-btn:hover {
background: #dc2626;
color: #ffffff;
}

.remove-team-member-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}

/* =========================================
MEMBER ALLOCATION FORM
========================================= */

.team-allocation-form {
margin-top: 20px;
padding: 16px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 12px;
}

.team-allocation-form h5 {
margin: 0 0 12px;
font-size: 15px;
color: #111827;
}

.team-member-select {
display: block;
width: 100%;
min-height: 130px;
padding: 8px;
background: #ffffff;
border: 1px solid #d1d5db;
border-radius: 9px;
color: #374151;
font-size: 14px;
outline: none;
}

.team-member-select:focus {
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.team-member-select option {
padding: 8px;
}

.team-member-select option:disabled {
color: #9ca3af;
background: #f3f4f6;
}

.assign-team-members-btn {
width: 100%;
margin-top: 12px;
padding: 11px 15px;
border: none;
border-radius: 9px;
background: #4f46e5;
color: #ffffff;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
}

.assign-team-members-btn:hover {
background: #4338ca;
transform: translateY(-1px);
}

.assign-team-members-btn:disabled {
background: #9ca3af;
cursor: not-allowed;
transform: none;
}

/* =========================================
TEAM CHAT BUTTON
========================================= */

.open-team-chat-btn {
width: 100%;
margin-top: 14px;
padding: 11px 15px;
border: 1px solid #c7d2fe;
border-radius: 9px;
background: #eef2ff;
color: #4338ca;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
}

.open-team-chat-btn:hover {
background: #4338ca;
color: #ffffff;
border-color: #4338ca;
}

/* =========================================
RESPONSIVE DESIGN
========================================= */

@media (max-width: 600px) {
.society-teams-container {
grid-template-columns: 1fr;
gap: 15px;
}

.society-team-card {
    padding: 17px;
    border-radius: 13px;
}

.society-team-card h4 {
    font-size: 17px;
}

.team-allocation-form {
    padding: 13px;
}

.team-member-row {
    align-items: flex-start;
}

.remove-team-member-btn {
    padding: 6px 9px;
}

}

/* ==========================================
   SOCIETY MANAGEMENT
========================================== */

.manage-societies-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.manage-society-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.manage-society-card h3 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 22px;
}

.manage-society-card h4 {
    font-size: 17px;
    color: #374151;
    margin: 24px 0 14px;
}

/* ==========================================
   CREATE TEAM FORM
========================================== */

.create-society-team-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
}

.create-society-team-form input,
.create-society-team-form select {
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.create-society-team-form input {
    flex: 1.5;
    min-width: 0;
}

.create-society-team-form select {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.create-society-team-form input:focus,
.create-society-team-form select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.create-society-team-form button {
    height: 46px;
    padding: 0 22px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.create-society-team-form button:hover {
    background: #3730a3;
}

.create-society-team-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================
   SOCIETY TEAMS
========================================== */

.society-teams-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 15px;
}

.society-team-card {
    width: 100%;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.society-team-card h4 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #1f2937;
}

.society-team-card > p {
    margin: 8px 0 18px;
    color: #6b7280;
    font-size: 14px;
}

.society-team-card h5 {
    margin: 18px 0 12px;
    font-size: 15px;
    color: #374151;
}

/* ==========================================
   ASSIGNED MEMBERS
========================================== */

.team-assigned-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.team-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.team-member-row span {
    font-size: 14px;
    color: #374151;
    overflow-wrap: anywhere;
}

.remove-team-member-btn {
    padding: 7px 12px;
    background: #fff1f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.remove-team-member-btn:hover {
    background: #dc2626;
    color: white;
}

/* ==========================================
   ALLOCATION FORM
========================================== */

.team-allocation-form {
    margin-top: 18px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.team-allocation-form h5 {
    margin: 0 0 12px;
}

.team-member-select {
    display: block;
    width: 100%;
    min-height: 130px;
    padding: 10px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    box-sizing: border-box;
}

.team-member-select option {
    padding: 7px;
}

.team-member-select option:disabled {
    color: #9ca3af;
}

.assign-team-members-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.assign-team-members-btn:hover {
    background: #3730a3;
}

/* ==========================================
   TEAM CHAT BUTTON
========================================== */

.open-team-chat-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.open-team-chat-btn:hover {
    background: #4338ca;
    color: white;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .manage-society-card {
        padding: 16px;
    }

    .society-teams-list {
        grid-template-columns: 1fr;
    }

    .create-society-team-form {
        flex-direction: column;
        align-items: stretch;
    }

    .create-society-team-form input,
    .create-society-team-form select,
    .create-society-team-form button {
        width: 100%;
        flex: none;
    }
}