/* Dashboard OS - Citizen Style */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Dashboard Container & Grid */
.rp-dashboard-view {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.8), transparent 40%);
}

.rp-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .rp-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Section Cards */
.rp-dashboard-section {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rp-dashboard-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.rp-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.rp-section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.rp-section-header h3 i {
    color: var(--accent-blue);
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.4));
}

/* 1. Identity Section Specifics */
.rp-section-identity {
    grid-column: 1 / -1; /* Full width on mobile, adjusted below for desktop if needed */
}

@media (min-width: 1024px) {
    .rp-section-identity {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .rp-section-status {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .rp-section-activity {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .rp-section-actions {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

.rp-id-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    perspective: 1200px;
}

/* REFINED REALISTIC ID CARD */
.rp-id-card-realistic {
    width: 100%;
    max-width: 550px; /* Slightly smaller for dashboard fit */
    aspect-ratio: 1.586; /* ID-1 format aspect ratio */
    background: radial-gradient(100% 100% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
                linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif; /* More standard font */
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rp-id-card-realistic > * {
    position: relative;
    z-index: 20;
}

.rp-id-card-realistic:hover {
    transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Holographic Overlay */
.rp-id-card-realistic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.0) 50%);
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
}

.rp-id-card-header {
    height: 18%;
    border-bottom: 1px solid rgba(234, 179, 8, 0.3); /* Gold accent */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.3);
}

.rp-id-card-flag {
    width: 40px;
    height: 24px;
    background: linear-gradient(90deg, #0055A4 33%, #FFFFFF 33%, #FFFFFF 66%, #EF4135 66%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rp-id-card-title {
    text-align: right;
    line-height: 1.1;
}

.rp-id-card-title h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(to right, #FDB931, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.rp-id-card-title span {
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    text-transform: uppercase;
}

.rp-id-card-body {
    flex: 1;
    display: flex;
    padding: 4% 5%;
    gap: 5%;
}

.rp-id-card-photo-box {
    width: 28%;
    aspect-ratio: 0.8;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0; /* Light background to show photo boundaries if transparent */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 30; /* Higher z-index to ensure visibility */
}

.rp-id-card-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rp-id-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #eebb66 0%, #d4af37 50%, #b8860b 100%);
    border-radius: 4px;
    position: absolute;
    left: 36%;
    top: 22%; /* Adjusted position */
    opacity: 0.9;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.rp-id-chip::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0; height: 1px;
    background: rgba(0,0,0,0.2);
}
.rp-id-chip::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1px;
    background: rgba(0,0,0,0.2);
}

.rp-id-card-details {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 12px;
    align-content: start;
    margin-left: 2%;
    position: relative;
    z-index: 25;
}

.rp-id-field {
    display: flex;
    flex-direction: column;
}

.rp-id-field.full-width {
    grid-column: 1 / -1;
}

.rp-id-field.two-thirds {
    grid-column: span 2;
}

.rp-id-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rp-id-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif; /* Clean font */
    letter-spacing: 0.5px;
}

.rp-id-card-footer {
    padding: 0 5% 4% 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.rp-id-signature {
    height: 30px;
    width: 30%;
    opacity: 0.8;
}

.rp-id-signature img {
    height: 100%;
    width: auto;
    filter: invert(1);
}

.rp-id-mrz {
    position: absolute;
    bottom: 5%;
    left: 35%;
    right: 5%;
    font-family: 'Courier New', monospace; /* Monospace for MRZ */
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-align: right;
    font-weight: 600;
}


/* 2. Status Section Styles */
.rp-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
    align-content: center;
}

.rp-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.rp-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.rp-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.rp-stat-info {
    display: flex;
    flex-direction: column;
}

.rp-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rp-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rp-stat-value.highlight {
    color: #34d399; /* Green accent for money */
}


/* 3. Activity Section Styles */
.rp-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rp-activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.rp-activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--accent-blue);
}

.rp-activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rp-activity-content {
    display: flex;
    flex-direction: column;
}

.rp-activity-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

.rp-activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
}


/* 4. Actions Section Styles */
.rp-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.rp-action-btn {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rp-action-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.rp-action-btn:active {
    transform: translateY(0);
}

.rp-action-btn i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.rp-action-btn:hover i {
    transform: scale(1.1);
}

.rp-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
