@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Spacing wrapper to hold the portal content securely */
.portal-body-wrapper {
    margin-top: 120px; /* Pushes content below fixed navigation bar */
    padding-bottom: 50px;
    min-height: 70vh;
}

.portal-body-wrapper h1, 
.portal-body-wrapper h2, 
.portal-body-wrapper h3, 
.portal-body-wrapper h4 {
    font-weight: 700;
    color: #30CDD7;
}

.portal-body-wrapper .container {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    background: #003057;
    border-radius: 10px;
    box-shadow: 0 4px 10px #1E96A5;
    overflow-x: auto;
}

.portal-body-wrapper label, 
.portal-body-wrapper select, 
.portal-body-wrapper input, 
.portal-body-wrapper textarea {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #0d1625;
    border: 1px solid #1E96A5;
    color: #ffffff;
    border-radius: 4px;
}

.portal-body-wrapper input[readonly] {
    background-color: #1a2436;
    cursor: not-allowed;
    border: 1px solid #555;
}

.portal-body-wrapper button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #30CDD7;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.portal-body-wrapper button:hover {
    background-color: #1E96A5;
}

.portal-body-wrapper .hidden {
    display: none !important;
}

.portal-body-wrapper .tab {
    display: none;
}

.portal-body-wrapper .tab.active {
    display: block;
}

.portal-body-wrapper .tabs button {
    background: #cde4e8;
    color: #003057;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    border: none;
    padding: 10px 15px;
}

.portal-body-wrapper .tabs button.active {
    background: #1E96A5;
    color: white;
    font-weight: 700;
}

.portal-body-wrapper #logoutBtn {
    float: right;
    background-color: #0f1140;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px #1E96A5;
}

/* Password eye toggle wrapper and styling */
.portal-body-wrapper .password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.portal-body-wrapper .password-wrapper input {
    margin-bottom: 0 !important;
    padding-right: 50px; 
}

.portal-body-wrapper .password-wrapper button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-body-wrapper .password-wrapper button img {
    width: 30px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.portal-body-wrapper .password-wrapper button:hover img {
    opacity: 1;
}

/* Table rules */
.portal-body-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
    word-wrap: break-word;
}

.portal-body-wrapper th, 
.portal-body-wrapper td {
    border: 1px solid rgb(255, 255, 255);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.portal-body-wrapper th {
    background-color: #1E96A5;
    color: white;
}

.portal-body-wrapper td button {
    display: inline-block;
    width: 100%;             
    box-sizing: border-box;  
    padding: 6px 4px;        
    font-size: 0.85em;       
    white-space: nowrap;    
    text-align: center;
    margin-bottom: 4px;     
}

.portal-body-wrapper td {
    overflow: hidden;       
    text-overflow: ellipsis;
}

.portal-body-wrapper #chairing-tab th:nth-child(1) { width: 12%; }
.portal-body-wrapper #chairing-tab th:nth-child(2) { width: 14%; }
.portal-body-wrapper #chairing-tab th:nth-child(3) { width: 14%; }
.portal-body-wrapper #chairing-tab th:nth-child(4) { width: 18%; }
.portal-body-wrapper #chairing-tab th:nth-child(5) { width: 8%; } 
.portal-body-wrapper #chairing-tab th:nth-child(6) { width: 10%; }
.portal-body-wrapper #chairing-tab th:nth-child(7) { width: 16%; }
.portal-body-wrapper #chairing-tab th:nth-child(8) { width: 8%; } 

.portal-body-wrapper th, 
.portal-body-wrapper td {
    padding: 10px 6px; 
}

.portal-body-wrapper .portal-header {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;  
    justify-content: flex-start;
    gap: 15px !important;            
    margin-bottom: 20px;
    width: 100%;
}

.portal-body-wrapper .header-logo {
    display: inline-block !important;
    vertical-align: middle !important; 
    height: 85px !important;            
    width: auto !important;
    margin-right: 15px !important;      
}