main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}


/* Remove inline-frame baseline gap + make it fill the wrapper */
.impersonate-viewport {
    width: 100%;
    height: 100%;
}

.impersonate-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Safety: remove body padding when we show preview in the modal */
.modal .modal-body.p-0 {
    padding: 0 !important;
}

.user-dashboard {
    padding: 20px;
    max-width: 2500px;
    margin: 0 auto;
    color: #333;
}

.dashboard-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dashboard-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.qr-badge {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qr-container {
    text-align: center;
    padding: 5px;
}

.qr-code-img {
    width: 80px;
    height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 3px;
    background: white;
}

.qr-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
    font-weight: 500;
}

/* Status Tiles */
.status-tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.status-tile.verified {
    border-left-color: #28a745;
}

.status-tile.unverified {
    border-left-color: #ffc107;
}

.status-tile.removed {
    border-left-color: rgb(220, 53, 69);
}

.status-tile.stats {
    border-left-color: #17a2b8;
}

.status-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tile-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.status-tile.verified .tile-icon {
    color: #28a745;
}

.status-tile.unverified .tile-icon {
    color: #ffc107;
}

.status-tile.stats .tile-icon {
    color: #17a2b8;
}

.tile-content h3 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.tile-content p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.tile-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(40, 167, 69, 1) 0%, rgba(23, 162, 184, 1) 100%);
    transition: width 0.6s ease;
}

.status-tile.unverified .progress-bar {
    background: linear-gradient(90deg, rgba(255, 193, 7, 1) 0%, rgba(253, 126, 20, 1) 100%);
}

.status-tile.removed .progress-bar {
    background: linear-gradient(90deg, rgba(255, 193, 7, 1) 0%, rgba(220, 53, 69, 1) 100%);
}

.tile-sparkline {
    margin-top: 10px;
    height: 30px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

.sparkline polyline {
    fill: none;
    stroke: #17a2b8;
    stroke-width: 2;
    stroke-linejoin: round;
}

/* Info Cards */
.info-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    border-radius: 10px 10px 0 0 !important;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-section {
    margin-bottom: 15px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #dee2e6;
}

.info-item {
    margin-bottom: 12px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.info-value {
    display: block;
    font-weight: 500;
    color: #212529;
}

/* Verification Card */
.verification-card .card-header {
    background-color: #0d6efd;
    color: white;
}

.verification-steps {
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #6c757d;
}

.step.completed .step-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-content p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
}

.kyc-textarea {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    resize: none;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 40px;
}

.activity-timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.activity-item {
    position: relative;
    padding-bottom: 20px;
}

.activity-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1rem;
    z-index: 1;
}

.activity-content {
    padding-bottom: 15px;
}

.activity-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.activity-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.activity-remarks {
    font-size: 0.85rem;
    color: #495057;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
    border-left: 3px solid #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .qr-badge {
        margin-top: 15px;
    }

    .status-tile {
        padding: 15px;
    }

    .tile-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .dashboard-title {
        font-size: 1.3rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .activity-timeline {
        padding-left: 30px;
    }

    .activity-icon {
        left: -30px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}



/** Register CSS */

.status-tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid;
    height: 100%;
}

.status-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.status-tile.verified {
    border-left-color: #28a745;
}

.status-tile.unverified {
    border-left-color: #ffc107;
}

.status-tile.removed {
    border-left-color: rgb(220, 53, 69);
}

.status-tile.stats {
    border-left-color: #007bff;
}

.tile-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #6c757d;
}

.status-tile.verified .tile-icon {
    color: #28a745;
}

.status-tile.unverified .tile-icon {
    color: #ffc107;
}

.status-tile.removed .tile-icon {
    color: rgb(220, 53, 69);
}

.status-tile.stats .tile-icon {
    color: #007bff;
}

.tile-icon.pulse {
    animation: pulse 2s infinite;
}

.tile-icon.rotate {
    animation: rotate 3s ease-in-out infinite;
}

.tile-content h3 {
    font-weight: 600;
    margin-bottom: 5px;
}

.tile-content p {
    color: #6c757d;
    margin-bottom: 0;
}

.tile-badge {
    margin-top: 10px;
}

.tile-trend {
    font-size: 0.8rem;
}

.sparkline {
    margin: 0 auto;
    display: block;
}
