:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #5a67d8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.org-logo {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: white;
    padding: 10px;
}

.header h1 {
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 300;
}

.org-selector {
    background: white;
    border-radius: 12px;
    padding: 60px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.org-selector h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: none;
}

.org-selector h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.org-selector p {
    color: #666;
    font-size: 1.1em;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.search-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
}

input[type="text"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
}

.results-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 200px;
}

.results-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.book-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.book-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.book-author {
    font-size: 1.1em;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9em;
    color: #666;
}

.detail-item {
    display: flex;
    align-items: center;
}

.detail-label {
    font-weight: 600;
    margin-right: 5px;
}

.shelf-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

.loading {
    text-align: center;
    color: var(--primary-color);
    padding: 40px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .search-inputs {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2em;
    }

    .org-logo {
        max-width: 100px;
        max-height: 100px;
    }
}

/* Container for the new layout */
.dashboard-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fdfdfd;
}


.dash-group h2 {
    font-size: 1.1rem;
    color: #1a4f7e; /* The dark teal/blue from the image */
    margin-bottom: 5px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Row containing the cards */
.card-row {
    display: flex;
    flex-wrap: wrap; /* Allows them to wrap on small screens */
    gap: 15px; /* Spacing between cards */
    padding: 15px 0;
}

/* THE NEW CARD STYLING */
.lms-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;
    background: white;

    /* Fixed Dimensions for the 'Icon' feel */
    width: 230px;
    height: 160px;

    padding: 20px;
    border-radius: 8px;

    /* The light gray border from the image */
    border: 1px solid #dcdcdc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow */
    transition: all 0.2s ease;

    /* Center the contents perfectly */
    margin: 0;
}

/* Card Hover State */
.lms-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f9f9f9;
}

/* Card Icon (Font Awesome) */
.lms-icon-card i {
    font-size: 3rem; /* Large icon */
    margin-bottom: 15px;
    color: #2c3e50; /* A dark default color for icons */
}

/* Card Label Text */
.lms-icon-card span {
    font-size: 1rem;
    color: #1a4f7e; /* The text color from the image */
    font-weight: 500;
    line-height: 1.2;
}