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

html, body {
    height: 100%;
    overflow: hidden;
}

/* BODY */
body {
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    background: radial-gradient(circle at top, #0b1220, #020617);
    color: #e2e8f0;
}

/* CONTAINER */
.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 40px; 
    gap: 25px;
}

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

.header h1 {
    font-size: 34px;
}

.badge {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 16px;
}

/* STATS */
.stats {
    display: flex;
    gap: 25px;
}

.stat-card {
    flex: 1;
    padding: 24px;
    background: #0f172a;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
}

.stat-card h4 {
    font-size: 17px;
    color: #94a3b8;
}

.stat-card p {
    font-size: 28px;
    color: #14b8a6;
}

/* GRID */
.grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    min-height: 0;
}

/* CARD */
.card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

/* QUICK ACTIONS */
.quickActions {
    gap: 14px;
}

.group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quickActions label {
    font-size: 16px;
    color: #94a3b8;
}

/* INPUT */
.quickActions input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #020617;
    color: white;
    font-size: 16px;
}

/* BUTTON */
.quickActions button {
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #14b8a6;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.delMemberbtn {
    background: #ef4444;
}

/* LIST */
.list {
    list-style: none;
}

.list li {
    background: #020617;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 16px;
}

/* BORROWED LIST */
.headerRow {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    font-size: 14px;
    color: #64748b;
    padding: 8px 12px;
}

.borrowedList .row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 12px;
    background: #020617;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 16px;
}

.borrowedList .row span:nth-child(2) {
    color: #38bdf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrowedList .row span:nth-child(3) {
    text-align: right;
    font-size: 14px;
}

/* ACTIVITY */
.activity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 16px;
}

.bar {
    flex: 1;
    height: 8px;
    border-radius: 10px;
}

.blue { background: cyan; width: 30%; }
.yellow { background: orange; width: 50%; }
.red { background: red; width: 70%; }

/* SCROLL AREAS */
.scroll,
.borrowscroll,
.systemMsg,
.scrollActivity {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* GRID AREAS */
.quickActions { grid-area: 1 / 1 / 3 / 3; }
.books { grid-area: 1 / 3 / 2 / 5; }
.members { grid-area: 1 / 5 / 2 / 7; }
.borrowedList { grid-area: 1 / 7 / 2 / 9; }
.memberActivity { grid-area: 2 / 3 / 3 / 6; }
.show { grid-area: 2 / 6 / 3 / 9; }

.list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Book name */
.bookName {
    color: #e2e8f0;
}

/* Quantity badge */
.bookQty {
    background: #0ea5e9;
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(14,165,233,0.2);
    color: #38bdf8;
}
