/* Variables matching Tailwind slate-900 palette and others */
/* 
$slate-900: #0f172a;
$slate-800: #1e293b;
$white: #ffffff;
$white-10: rgba(255, 255, 255, 0.1);
$white-20: rgba(255, 255, 255, 0.2);
$white-40: rgba(255, 255, 255, 0.4);
$white-50: rgba(255, 255, 255, 0.5);
$white-80: rgba(255, 255, 255, 0.8);
$black-20: rgba(0, 0, 0, 0.2);
$black-40: rgba(0, 0, 0, 0.4);
$black-60: rgba(0, 0, 0, 0.6);
$sky-400: #38bdf8;
$sky-500: #0ea5e9;
$green-500: #22c55e;
$green-400: #4ade80;
*/

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

body, html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    background-color: #0f172a;
    color: #ffffff;
}

.ak-launchpad-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ak-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: blur(20px) brightness(0.6);
}

/* Header */
.ak-header {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem 2rem;
}

.ak-search-container {
    position: relative;
    width: 100%;
    max-width: 32rem; /* max-w-lg */
}

.ak-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.ak-search-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ak-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px; /* full rounded */
    color: #ffffff;
    font-size: 1.125rem; /* text-lg */
    outline: none;
    transition: all 0.2s;
}

.ak-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ak-lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.ak-header-top .ak-lang-switcher {
    margin-top: 0;
}

.ak-lang-link {
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    filter: grayscale(0.8);
}

.ak-lang-link:hover, .ak-lang-link.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.ak-search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.ak-header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 42rem;
    justify-content: space-between;
}

.ak-search-container {
    flex: 1;
    min-width: 0;
}

.ak-user-info {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ak-user-email {
    font-size: 0.875rem; /* text-sm */
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    font-weight: 400;
}

.ak-categories {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ak-category-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.ak-category-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ak-category-btn.active {
    background-color: #ffffff;
    color: #0f172a;
}

/* Main Content */
.ak-main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 4rem;
}

/* Hide scrollbar for cleaner look */
.ak-main-content::-webkit-scrollbar {
    width: 6px;
}
.ak-main-content::-webkit-scrollbar-track {
    background: transparent;
}
.ak-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.ak-grid-wrapper {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
}

.ak-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.ak-app-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
    outline: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.ak-app-item:hover, .ak-app-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ak-app-item.coming-soon {
    opacity: 0.6;
    cursor: default;
    filter: grayscale(0.5);
}

.ak-app-item.coming-soon:hover, .ak-app-item.coming-soon:focus {
    transform: none;
    background-color: transparent;
}

.ak-app-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.ak-app-icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
    position: relative;
    z-index: 2;
}

/* Colors classes */
.ak-app-icon-wrapper.bg-blue-500 { background-color: #3b82f6; }
.ak-app-icon-wrapper.bg-green-500 { background-color: #22c55e; }
.ak-app-icon-wrapper.bg-purple-500 { background-color: #a855f7; }
.ak-app-icon-wrapper.bg-indigo-500 { background-color: #6366f1; }
.ak-app-icon-wrapper.bg-red-500 { background-color: #ef4444; }
.ak-app-icon-wrapper.bg-orange-500 { background-color: #f97316; }
.ak-app-icon-wrapper.bg-cyan-500 { background-color: #06b6d4; }
.ak-app-icon-wrapper.bg-emerald-500 { background-color: #10b981; }
.ak-app-icon-wrapper.bg-slate-700 { background-color: #334155; }
.ak-app-icon-wrapper.bg-pink-500 { background-color: #ec4899; }
.ak-app-icon-wrapper.bg-sky-500 { background-color: #0ea5e9; }
.ak-app-icon-wrapper.bg-amber-500 { background-color: #f59e0b; }

.ak-icon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.ak-coming-soon-badge {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.6rem;
    text-align: center;
    padding: 2px 0;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 3;
}

.ak-app-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.ak-app-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ak-app-category-badge {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
}

.ak-no-results {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.125rem;
}

/* Footer */
.ak-footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through except buttons */
}

.ak-footer-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.ak-footer-logo {
    height: 1.25rem;
    width: auto;
    opacity: 0.7;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

.ak-footer-logo:hover {
    opacity: 1;
}

.ak-dock {
    pointer-events: auto;
    background-color: rgba(15, 23, 42, 0.6); /* slate-900/60 */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.ak-dock-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.ak-dock-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.ak-dock-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ak-dock-btn-logout {
    background-color: rgba(239, 68, 68, 0.3) !important; /* red-500 with opacity */
    color: #fecdd3 !important; /* red-200 */
    text-decoration: none;
}

.ak-dock-btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.5) !important; /* red-500 with more opacity */
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.ak-dock-btn.group {
    flex-direction: column;
    gap: 0.25rem;
    height: auto;
    padding: 0.5rem;
}

.ak-dock-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    line-height: 1;
}

.ak-dock-separator {
    width: 1px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    align-self: center;
}

/* Modal */
.ak-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ak-modal-content {
    background-color: #1e293b;
    width: 100%;
    max-width: 42rem; /* Wider for better content visibility */
    max-height: 90vh;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ak-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
}

.ak-modal-title-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ak-modal-title-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.ak-modal-title-group p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.ak-modal-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: rgba(56, 189, 248, 0.2); /* sky-400/20 */
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ak-modal-icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
}

.ak-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.ak-modal-close:hover {
    color: #ffffff;
}

.ak-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.ak-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ak-status-item {
    background-color: rgba(15, 23, 42, 0.5); /* slate-900/50 */
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.ak-status-item .label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ak-status-item .value {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.ak-status-health {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: rgba(34, 197, 94, 0.1); /* green-500/10 */
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.5rem;
}

.ak-health-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    font-size: 0.875rem;
    font-weight: 500;
}

.ak-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.ak-status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

.ak-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ak-gate-modal .ak-modal-footer {
    justify-content: space-between;
    align-items: center;
}

.ak-btn-primary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ak-btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Icon-only button for modal footer */
.ak-btn-icon-only {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.ak-btn-icon-only:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.ak-btn-icon-only svg {
    width: 1.25rem;
    height: 1.25rem;
}

.ak-gate-modal .ak-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ak-gate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ak-gate-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.ak-gate-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ak-gate-value {
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    color: #ffffff;
}

.ak-gate-copy-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.ak-gate-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.ak-gate-copy-btn-copied {
    color: #4ade80 !important;
    opacity: 1 !important;
}

.ak-gate-pin {
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.15em;
    font-size: 1.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 0.5rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e2f3ff;
}

.ak-gate-error {
    color: #f87171;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.ak-gate-note {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}

.ak-gate-modal-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.ak-gate-modal-logo {
    height: 1.25rem;
    width: auto;
    opacity: 0.7;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    transition: opacity 0.2s ease;
}

.ak-gate-modal-logo:hover {
    opacity: 1;
}

/* About Modal Styles */
.ak-about-section {
    margin-bottom: 1.5rem;
}

.ak-about-section:last-child {
    margin-bottom: 0;
}

.ak-about-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ak-about-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.ak-about-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.ak-about-list li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ak-about-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.ak-about-section code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.9);
}

/* Statistics Grid */
.ak-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.ak-stat-item {
    background-color: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.ak-stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.ak-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
}

/* Category Stats */
.ak-category-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ak-category-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.ak-category-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.ak-category-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Status Modal Extensions */
.ak-status-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ak-status-section-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Port List */
.ak-port-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.ak-port-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(15, 23, 42, 0.5);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.ak-port-name {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    flex: 1;
}

.ak-port-number {
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
    font-weight: 600;
}

.ak-port-category {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

/* Health Status Badges */
.ak-info-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    opacity: 0.7;
}

.ak-info-badge:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.ak-info-badge svg {
    width: 0.875rem;
    height: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.ak-health-status-badge {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ak-health-status-badge:hover {
    transform: translateY(-50%) scale(1.2);
}

.ak-status-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.ak-status-dot-green {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3), 0 0 8px rgba(34, 197, 94, 0.5);
}

.ak-status-dot-yellow {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 0 8px rgba(245, 158, 11, 0.5);
}

.ak-status-dot-red {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3), 0 0 8px rgba(239, 68, 68, 0.5);
}

.ak-status-dot-gray {
    background-color: #6b7280;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.3);
}

/* Helper Health Modal Styles */
.ak-health-status-section {
    margin-bottom: 1.5rem;
}

.ak-health-status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.ak-health-status-dot-large {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ak-health-status-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ak-health-status-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.ak-health-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ak-health-detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.ak-health-detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ak-health-detail-value {
    font-size: 1rem;
    color: #ffffff;
    word-break: break-all;
}

.ak-health-error-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
}

.ak-health-error-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.ak-health-error-message {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.ak-health-history-section {
    margin-top: 1.5rem;
}

.ak-health-history-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.ak-health-history-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.ak-health-history-empty {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1rem;
}

.ak-health-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.ak-health-history-item:last-child {
    margin-bottom: 0;
}

.ak-health-history-status {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.ak-health-history-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Helper Info Modal Styles */
.ak-info-description-section {
    margin-bottom: 1.5rem;
}

.ak-info-description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.ak-info-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ak-info-detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.ak-info-detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ak-info-detail-value {
    font-size: 1rem;
    color: #ffffff;
    word-break: break-all;
}

/* Responsive Design for User Email Display */
@media (max-width: 768px) {
    .ak-header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .ak-user-info {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .ak-user-email {
        font-size: 0.8125rem; /* Slightly smaller on mobile */
    }
}

@media (max-width: 480px) {
    .ak-user-email {
        font-size: 0.75rem; /* Even smaller on very small screens */
        word-break: break-all; /* Break long email addresses */
    }
}
