/* Library Management Styles */

.tabs-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1em;
    font-weight: bold;
    color: #888;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form and List Styles */
.form-container, .history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-container input, .history-controls select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex-grow: 1;
}

#save-book-btn, #load-history-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #4CAF50;
    cursor: pointer;
    font-weight: bold;
}

/* Book List */
#book-list, #issue-return-list, #student-history-display {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.book-item, .issue-item, .history-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.book-item:last-child, .issue-item:last-child, .history-item:last-child {
    border-bottom: none;
}

.book-details span {
    margin-left: 15px;
}

.book-actions button {
    margin-right: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Issue/Return List */
.issue-controls select {
    padding: 8px;
    margin-left: 10px;
    border-radius: 4px;
}

.issue-controls button {
     padding: 8px 15px;
}

/* History List */
.history-item {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}
