/* CSS specific to Cards Widget Module */

.coderstation-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.coderstation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.coderstation-card.no-hover:hover,
.coderstation-card.no-hover:focus,
.coderstation-card.no-hover:focus-within {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    /* Same as base state */
    outline: none !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    /* Same as base state */
}

/* Custom Header with Icon Integration */
.coderstation-card .card-custom-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0;
    gap: 12px;
    background-color: #CDEFF7;
}

.coderstation-card .card-custom-header .header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.05);
}

.coderstation-card .card-custom-header .header-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color, #111827);
    letter-spacing: -0.3px;
    flex-grow: 1;
}

.coderstation-card .card-custom-header .header-actions {
    font-size: 0.9rem;
}

/* Header Variants */
.coderstation-card .card-custom-header.header-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #153c66 100%);
    color: #fff;
    border-bottom: none;
}

.coderstation-card .card-custom-header.header-primary .header-title {
    color: #fff;
}

.coderstation-card .card-custom-header.header-primary .header-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.coderstation-card .card-custom-header.header-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    border-bottom: none;
}

.coderstation-card .card-custom-header.header-success .header-title {
    color: #fff;
}

.coderstation-card .card-custom-header.header-success .header-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.coderstation-card .card-custom-header.header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
    border-bottom: none;
}

.coderstation-card .card-custom-header.header-danger .header-title {
    color: #fff;
}

.coderstation-card .card-custom-header.header-danger .header-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.coderstation-card .card-custom-header.header-warning {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9788019b 100%);
    color: #fff;
    border-bottom: none;
}

.coderstation-card .card-custom-header.header-warning .header-title {
    color: #fff;
}

.coderstation-card .card-custom-header.header-warning .header-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.coderstation-card .card-custom-header.header-info {
    background: #CDEFF7;
    color: #111827;
    border-bottom: none;
}

.coderstation-card .card-custom-header.header-info .header-title {
    color: #111827;
}

.coderstation-card .card-custom-header.header-info .header-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
}

/* Card Body */
.coderstation-card .card-body {
    padding: 20px;
    flex-grow: 1;
}

/* Data Presentations */
.coderstation-card .data-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.coderstation-card .data-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* List Presentation */
.coderstation-card .card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coderstation-card .card-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coderstation-card .card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Custom Footer */
.coderstation-card .card-custom-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 0.85rem;
    text-align: left !important;
}

.coderstation-card .card-custom-footer:not(.justify-content-end) > span:first-child:not(:last-child),
.coderstation-card .card-custom-footer .footer-caption {
    margin-right: auto !important;
    text-align: left !important;
    display: inline-flex !important;
    align-items: center !important;
}

.coderstation-card .card-custom-footer > span:last-child:not(:first-child),
.coderstation-card .card-custom-footer.justify-content-end,
.coderstation-card .card-custom-footer.justify-content-end > span {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

.coderstation-card .card-custom-footer.justify-content-end {
    justify-content: flex-end !important;
}

.coderstation-card .card-custom-footer a {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.2s;
}

.coderstation-card .card-custom-footer a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Reusable Card / Container Accent - Secondary Color Top Border & Hover Effect
   ========================================================================== */
.card-top-secondary,
.card-border-top-secondary {
    border-top: 3.5px solid var(--secondary-color, #FF5C0A) !important;
    transition: border-top-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-top-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card-top-secondary:hover:not(.no-hover),
.card-border-top-secondary:hover:not(.no-hover),
.coderstation-card.card-top-secondary:hover:not(.no-hover),
.card.card-top-secondary:hover:not(.no-hover) {
    border-top: 4.5px solid var(--secondary-color, #FF5C0A) !important;
    box-shadow: 0 -3px 14px rgba(255, 92, 10, 0.4), 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.coderstation-card.no-hover.card-top-secondary:hover,
.coderstation-card.no-hover:hover {
    transform: none !important;
    border-top: 3.5px solid var(--secondary-color, #FF5C0A) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}