:root {
    --bg-dark: #111111;
    --primary: #4ade80; /* Green from the logo */
    --secondary: #16a34a;
    --accent: #f59e0b; /* Orange from the icons */
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --glass-bg: rgba(17, 17, 17, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Matching clean sans-serif */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop') center/cover fixed no-repeat;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* More angular, less rounded matching the boxes in the image */
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.company-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.verified {
    background: rgba(74, 222, 128, 0.15);
    color: var(--primary);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Profile Content */
.profile-content {
    text-align: center;
}

.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.intern-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.intern-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.info-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s ease;
}

.info-item:hover {
    border-color: var(--accent);
}

.label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label svg {
    color: var(--accent);
}

.value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.status-active {
    color: var(--primary);
}

/* Footer */
.card-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timestamp {
    margin-top: 5px;
    font-family: monospace;
    opacity: 0.7;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Card Specifics */
.icon-container.error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

#error-card h2 {
    text-align: center;
    margin-bottom: 10px;
}

#error-card p {
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Adjustments */
@media screen and (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .glass-card {
        padding: 24px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .intern-name {
        font-size: 1.5rem;
    }

    .intern-role {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}
