/* Financial Module - White text on colored labels and progress bars */
.label.label-white-text,
.label-danger.label-white-text,
.label-warning.label-white-text,
.label-success.label-white-text,
.label-info.label-white-text {
    color: #ffffff !important;
}

.progress-bar .progress-bar-white-text,
.progress-bar-danger .progress-bar-white-text,
.progress-bar-warning .progress-bar-white-text,
.progress-bar-success .progress-bar-white-text,
.progress-bar-info .progress-bar-white-text {
    color: #ffffff !important;
}

/* Priority badges - white text on blue */
.badge.badge-primary,
.badge-primary {
    background-color: #926C15 !important;
    color: #ffffff !important;
    border: none !important;
}

/* List group items - white background with dark text */
.list-group-item strong {
    color: #333 !important;
}

/* Panel headings with colored backgrounds - white text */
.panel-heading h5.panel-title,
.panel-heading h4.panel-title,
.panel-heading .panel-title {
    color: #ffffff !important;
}

.panel-heading h5.panel-title i,
.panel-heading h4.panel-title i,
.panel-heading .panel-title i {
    color: #ffffff !important;
}

/* Card headers with colored backgrounds - white text */
.card-header h5.card-title,
.card-header h4.card-title,
.card-header .card-title {
    color: #ffffff !important;
}

.card-header[style*="background-color: #926C15"],
.card-header[style*="backgroundColor: #926C15"] {
    color: #ffffff !important;
}

.card-header[style*="background-color: #926C15"] *,
.card-header[style*="backgroundColor: #926C15"] * {
    color: #ffffff !important;
}

/* Modern Login Styles */
.modern-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modern-login-container {
    width: 100%;
    max-width: 450px;
    background-color: #926C15;
    border-radius: 12px;
    padding: 10px;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px 35px;
}

.reset-password-card {
    max-width: 500px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    height: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-form {
    margin-top: 25px;
}

.login-input {
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
}

.login-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    width: 100%;
    height: 45px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
}

.forgot-password-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

.login-spinner {
    text-align: center;
    padding: 40px 0;
}

/* Financial Module - Small Charts */
.loan-summary-overview .k-chart,
.credit-card-summary .k-chart,
.loan-summary-card .k-chart,
.credit-card-detail .k-chart {
    height: 70px !important;
}

/* ===================================
   HOME PAGE - WEB SECTIONS SPACING
   =================================== */

/* Add spacing between web sections on home page */
.main-content .panel,
.main-content .well,
.main-content .card {
    margin-top: 2rem;
}

/* First section doesn't need top margin */
.main-content > .panel:first-child,
.main-content > .well:first-child,
.main-content > .card:first-child,
.main-content > div:first-child .panel,
.main-content > div:first-child .well,
.main-content > div:first-child .card {
    margin-top: 0;
}

/* Sections inside rows also need spacing */
.main-content .row + .row {
    margin-top: 2rem;
}

/* Web section specific spacing */
.websection-container {
    margin-top: 2rem;
}

.websection-container:first-child {
    margin-top: 0;
}

/* Add spacing between column groups on home page */
.main-content-container .row {
    margin-bottom: 2rem;
}

/* Panel and well spacing on home page */
.main-content .panel + .panel,
.main-content .well + .well {
    margin-top: 2rem;
}

/* Add spacing between H3 headers and between content and H3 headers */
.main-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* First H3 in a column doesn't need top margin */
.main-content .col-sm-4 > h3:first-child,
.main-content .col-md-4 > h3:first-child,
.main-content .col-lg-4 > h3:first-child,
.main-content [class*="col-"] > h3:first-child {
    margin-top: 0;
}

/* Add spacing between links and following H3 */
.main-content a + br + h3,
.main-content br + h3 {
    margin-top: 2rem;
}



/* Balance History Chart - Full Height - Must be more specific */
.credit-card-detail .credit-card-balance-history .k-chart,
.credit-card-detail .credit-card-balance-chart-wrap .k-chart,
.credit-card-summary .credit-card-balance-history .k-chart,
.credit-card-balance-history .k-chart,
.credit-card-summary .credit-card-balance-history-embedded .k-chart,
.credit-card-summary .credit-card-overall-balance-history .k-chart,
.credit-card-overall-balance-history .k-chart {
    height: 500px !important;
}

/* Loan Principal Payment History Chart - Full Height - Must be more specific */
.loan-summary-card .loan-principal-payment-history .k-chart,
.loan-summary-overview .loan-principal-payment-history .k-chart,
.loan-principal-payment-history .k-chart,
.payment-history-chart .k-chart {
    height: 500px !important;
}

/* Loan Balance History Chart - Full Height - Must be more specific */
.loan-summary-card .loan-balance-history .k-chart,
.loan-summary-overview .loan-balance-history .k-chart,
.loan-balance-history .k-chart {
    height: 500px !important;
}

/* Music Library Styles - GRPConsulting site colors (#926C15 primary) */
.music-library .artist-card,
.music-library .album-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

/* Artist grid (first view): portrait above name — was max-height 80px, now +60% */
.music-library .music-library-artist-list-thumb {
    max-width: 100%;
    max-height: 128px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Track table: uniform artist thumbs */
.music-library .music-library-track-artist-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Hero section for artist/album view (no card header) */
.music-library .music-library-view-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.music-library .music-library-hero-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(33, 37, 41, 0.12);
}

/* Artist browse (albums or tracks tab): larger hero portrait than album cover row */
.music-library .music-library-hero-img.music-library-hero-img-artist {
    width: auto;
    height: auto;
    max-width: min(260px, 100%);
    max-height: 200px;
    object-fit: contain;
    object-position: top left;
    align-self: flex-start;
    display: block;
    box-shadow: 0 1px 6px rgba(33, 37, 41, 0.1);
}

.music-library .music-library-view-hero.music-library-view-hero-artist {
    align-items: flex-start;
    background: linear-gradient(180deg, #f8f3e8 0%, #f1e6d0 100%);
    border: 1px solid #e2d2b0;
    border-radius: 0.65rem;
    padding: 0.75rem 1rem;
    gap: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.music-library .music-library-view-hero-artist .music-library-hero-title {
    margin-bottom: 0;
}

.music-library .music-library-view-hero-artist .music-library-hero-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.music-library .music-library-hero-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.music-library .music-library-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 1rem;
    margin-top: 0.45rem;
}

.music-library .music-library-hero-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.music-library .music-library-hero-sort label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6c757d;
}

.music-library .music-library-hero-sort .form-select {
    width: auto;
    min-width: 11.5rem;
    display: inline-block;
}

.music-library .music-library-hero-placeholder {
    background-color: #e9ecef;
}

.music-library .music-library-hero-info {
    flex: 1;
    min-width: 0;
}

.music-library .music-library-hero-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.music-library .music-library-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    color: #6c757d;
    margin-bottom: 0.9rem;
}

.music-library .music-library-hero-meta-item {
    display: inline-flex;
    align-items: center;
}

.music-library .music-library-hero-year {
    font-variant-numeric: tabular-nums;
    color: #495057;
    font-weight: 500;
}

.music-library .music-library-category-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b4e0f;
    background: #f5edd8;
    border: 1px solid #d4b56a;
    border-radius: 999px;
    padding: 0.22em 0.75em;
    line-height: 1.3;
}

.music-library .music-library-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Album list grid: album-cover dimensions (~50% larger than before) */
/* Category section titles when browsing an artist's albums */
.music-library .music-library-album-category-heading {
    margin: 0 0 1rem 0;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    border-left: 5px solid #926C15;
    background: linear-gradient(90deg, rgba(146, 108, 21, 0.18) 0%, rgba(146, 108, 21, 0.06) 55%, transparent 100%);
    border-radius: 0 0.35rem 0.35rem 0;
    box-shadow: 0 1px 0 rgba(146, 108, 21, 0.25);
}

.music-library .music-library-album-category-title {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b4e0f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.music-library .music-library-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .music-library .music-library-album-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .music-library .music-library-album-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.music-library .music-library-album-grid-item {
    min-width: 0;
    display: flex;
    justify-content: flex-start;
}

.music-library .music-library-album-grid .album-card {
    width: 100%;
    max-width: 195px;
}

.music-library .music-library-album-card-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.65rem;
}

.music-library .music-library-album-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.music-library .music-library-album-card-meta-left {
    min-width: 0;
    color: #6c757d;
}

.music-library .music-library-album-card-meta .badge {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2em 0.45em;
    line-height: 1.2;
}

.music-library .music-library-album-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    margin-top: auto;
    padding-top: 0.4rem;
    min-height: 1.4rem;
}

.music-library .music-library-album-card-actions .btn {
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 1.35rem;
}

.music-library .music-library-album-card-actions .btn span,
.music-library .music-library-album-card-actions .btn i {
    margin: 0 !important;
    width: 0.85rem;
    font-size: 0.85rem;
    line-height: 1;
    text-align: center;
}

/* Album cover: square, classic dimensions */
.music-library .music-library-album-card-img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #e9ecef;
}

.music-library .music-library-album-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-library .music-library-album-card-img-placeholder {
    background-color: #e9ecef;
}

.music-library .artist-card:hover,
.music-library .album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #926C15;
}

.music-library .card-header.bg-primary,
.music-library .card-header.bg-success,
.music-library .card-header.bg-info {
    background-color: #926C15 !important;
    color: #ffffff !important;
    border-color: #926C15 !important;
}

.music-library .text-primary,
.music-library .text-success,
.music-library .text-info {
    color: #926C15 !important;
}

.music-library .badge.bg-info {
    background-color: #7a5a12 !important;
    color: #ffffff !important;
}

.music-library .breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.music-library .breadcrumb a {
    color: #926C15 !important;
    text-decoration: none;
}

.music-library .breadcrumb a:hover {
    color: #7a5a12 !important;
    text-decoration: underline;
}

.music-library .music-library-link {
    color: #926C15 !important;
    text-decoration: none;
}

.music-library .music-library-link:hover {
    color: #7a5a12 !important;
    text-decoration: underline;
}

.music-library .breadcrumb-item.active {
    font-weight: 600;
}

.music-library .table tbody tr {
    cursor: default;
}

.music-library .table tbody tr:hover {
    background-color: #f5f5f5;
}


/* Credit Card Statement History Chart - Full Height - Must be more specific */
.credit-card-detail .credit-card-statement-history .k-chart,
.credit-card-summary .credit-card-statement-history .k-chart,
.credit-card-statement-history .k-chart {
    height: 500px !important;
}

/* Modal fixes - don't hide content behind modal */
.modal-backdrop {
    position: fixed !important;
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Progress bar legend */
.progress-legend {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}
