:root {
    --primary: #2563eb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --surface: #ffffff;
    
    /* Security Colors */
    --security-high: #15803d;
    --security-medium: #ca8a04;
    --security-low: #dc2626;
    
    /* Font */
    --font-primary: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-primary);
    background: linear-gradient(
        -45deg,
        rgba(37, 99, 235, 0.01),
        rgba(37, 99, 235, 0.02),
        rgba(99, 102, 241, 0.01),
        rgba(37, 99, 235, 0.02)
    );
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
}

.narrative-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 8rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    text-align: center;
}

.narrative-text {
    font-size: 2.5rem;
    line-height: 1.5;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text);
    font-weight: 600;
    white-space: pre-line;
    position: relative;
    z-index: 2;
    font-family: var(--font-primary);
}

.account-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem auto;
    max-width: 800px;
    padding: 0 2rem;
}

.account-item {
    position: relative;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: slideIn 0.3s ease forwards;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.account-item.root {
    border-left-color: var(--primary);
}

.account-item.service {
    border-left-color: var(--text-secondary);
}

.input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to top, white 50%, transparent);
}

.input-bar {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.input-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.05) 0%,
        transparent 70%
    );
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

#mainInput {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    position: relative;
    z-index: 1001;
}

#mainInput:focus {
    outline: none;
    border-color: var(--primary);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Security level colors will be set dynamically via JavaScript */
.security-8 { border-left-color: #166534 !important; }
.security-7 { border-left-color: #22c55e !important; }
.security-6 { border-left-color: #4ade80 !important; }
.security-5 { border-left-color: #3b82f6 !important; }
.security-4 { border-left-color: #eab308 !important; }
.security-3 { border-left-color: #f97316 !important; }
.security-2 { border-left-color: #ef4444 !important; }
.security-1 { border-left-color: #dc2626 !important; } 

/* Add these new styles */
.security-levels-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.security-level-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    animation: slideIn 0.3s ease forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100px;
    border: 2px solid;
    font-family: var(--font-primary);
}

.security-level-item .level-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: inherit;
    position: relative;
    z-index: 2;
}

.security-level-item .level-number {
    font-size: 1.75rem;
    font-weight: 700;
}

.security-level-item .level-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.security-level-item .level-details {
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
    line-height: 1.5;
    overflow: hidden;
}

/* Default state - colored border and dark text */
.security-level-item[data-level="8"] { border-color: #166534; color: #166534; }
.security-level-item[data-level="7"] { border-color: #22c55e; color: #22c55e; }
.security-level-item[data-level="6"] { border-color: #4ade80; color: #4ade80; }
.security-level-item[data-level="5"] { border-color: #3b82f6; color: #3b82f6; }
.security-level-item[data-level="4"] { border-color: #eab308; color: #eab308; }
.security-level-item[data-level="3"] { border-color: #f97316; color: #f97316; }
.security-level-item[data-level="2"] { border-color: #ef4444; color: #ef4444; }
.security-level-item[data-level="1"] { border-color: #dc2626; color: #dc2626; }

/* Hover state - filled background and white text */
.security-level-item:hover {
    transform: translateY(-2px);
    height: auto;
    z-index: 10;
}

.security-level-item:hover .level-details {
    opacity: 1;
    max-height: 300px;
    margin-top: 1rem;
}

.security-level-item[data-level="8"]:hover { background: #166534; }
.security-level-item[data-level="7"]:hover { background: #22c55e; }
.security-level-item[data-level="6"]:hover { background: #4ade80; }
.security-level-item[data-level="5"]:hover { background: #3b82f6; }
.security-level-item[data-level="4"]:hover { background: #eab308; }
.security-level-item[data-level="3"]:hover { background: #f97316; }
.security-level-item[data-level="2"]:hover { background: #ef4444; }
.security-level-item[data-level="1"]:hover { background: #dc2626; }

/* Style the description and example text */
.level-desc {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
}

.level-explanation {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-primary);
}

.level-example {
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
    font-family: var(--font-primary);
}

/* Adjust narrative text for security assessment */
.narrative-text.security-prompt {
    font-size: 2rem;
    margin-bottom: 2rem;
} 

/* Add a wrapper for the content to handle overflow */
.security-level-item .content-wrapper {
    position: relative;
    z-index: 2;
} 

/* Analysis Sections */
.security-analysis {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: left;
}

.account-map {
    font-family: monospace;
    white-space: pre;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: left;
}

.account-map .threat {
    color: #dc2626;
    font-weight: bold;
}

.account-map .warning {
    color: #eab308;
}

.account-map .secure {
    color: #16a34a;
}

.account-map .asterisk {
    color: #dc2626;
    font-weight: bold;
    margin-left: 0.5rem;
}

.security-score {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
}

.score-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.score-details {
    display: grid;
    gap: 1rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ai-helper {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.copy-prompt-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--primary-dark)
    );
    background-size: 200% 200%;
    animation: gradientFlow 2s ease infinite;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.threat-explanation {
    font-size: 0.875rem;
    color: #dc2626;
    margin-top: 0.5rem;
    font-style: italic;
} 

/* Add footer styles */
.footer {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-family: var(--font-primary);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer.hide {
    opacity: 0;
    pointer-events: none;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Add these new gradient animation styles */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add a subtle glow effect to the input bar */
.input-bar {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.input-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.05) 0%,
        transparent 70%
    );
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Update security level items with glass effect */
.security-level-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* ... rest of the properties remain the same ... */
}

/* Add smooth transition for security level hover */
.security-level-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.security-level-item:hover::before {
    opacity: 1;
}

/* Update analysis section with glass effect */
.security-analysis {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Add subtle animation to the copy button */
.copy-prompt-btn {
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--primary-dark)
    );
    background-size: 200% 200%;
    animation: gradientFlow 2s ease infinite;
    transition: all 0.3s ease;
}

.copy-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Update footer with subtle glow */
.footer a {
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
} 

/* Add gradient animation to more elements */
.security-level-item::after,
.account-item::after,
.input-bar::after,
.security-analysis::after,
.security-score::after,
.ai-helper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.85)
    );
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    z-index: -1;
    border-radius: inherit;
}

/* Update the copy button styles */
.copy-prompt-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: var(--font-primary);
}

.copy-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    background: var(--primary);
    color: white;
}

/* Update AI helper text color */
.ai-helper p {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Add subtle glow effect to interactive elements */
.security-level-item:hover,
.account-item:hover,
.input-bar:focus-within {
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
} 

/* Ensure account text is visible */
.account-name,
.account-parent {
    position: relative;
    z-index: 2;
} 

/* Update the security level item text colors */
.security-level-item[data-level="8"] { border-color: #166534; }
.security-level-item[data-level="7"] { border-color: #22c55e; }
.security-level-item[data-level="6"] { border-color: #4ade80; }
.security-level-item[data-level="5"] { border-color: #3b82f6; }
.security-level-item[data-level="4"] { border-color: #eab308; }
.security-level-item[data-level="3"] { border-color: #f97316; }
.security-level-item[data-level="2"] { border-color: #ef4444; }
.security-level-item[data-level="1"] { border-color: #dc2626; }

/* Add text color to match border */
.security-level-item[data-level="8"] .level-details { color: #166534; }
.security-level-item[data-level="7"] .level-details { color: #22c55e; }
.security-level-item[data-level="6"] .level-details { color: #4ade80; }
.security-level-item[data-level="5"] .level-details { color: #3b82f6; }
.security-level-item[data-level="4"] .level-details { color: #eab308; }
.security-level-item[data-level="3"] .level-details { color: #f97316; }
.security-level-item[data-level="2"] .level-details { color: #ef4444; }
.security-level-item[data-level="1"] .level-details { color: #dc2626; }

/* Keep text white on hover */
.security-level-item:hover .level-details {
    color: white;
} 

/* Keep text color matching border color */
.security-level-item[data-level="8"] .level-details,
.security-level-item[data-level="8"] .level-header { color: #166534; }
.security-level-item[data-level="7"] .level-details,
.security-level-item[data-level="7"] .level-header { color: #22c55e; }
.security-level-item[data-level="6"] .level-details,
.security-level-item[data-level="6"] .level-header { color: #4ade80; }
.security-level-item[data-level="5"] .level-details,
.security-level-item[data-level="5"] .level-header { color: #3b82f6; }
.security-level-item[data-level="4"] .level-details,
.security-level-item[data-level="4"] .level-header { color: #eab308; }
.security-level-item[data-level="3"] .level-details,
.security-level-item[data-level="3"] .level-header { color: #f97316; }
.security-level-item[data-level="2"] .level-details,
.security-level-item[data-level="2"] .level-header { color: #ef4444; }
.security-level-item[data-level="1"] .level-details,
.security-level-item[data-level="1"] .level-header { color: #dc2626; } 

/* Remove the accounts container styles and replace with notification styles */
.account-notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    font-family: var(--font-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.account-notification.show {
    opacity: 1;
} 

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: 1000;
} 

.export-section {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.export-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text);
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 500;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--text);
} 

/* Remove old footer styles and add new credit styles */
.credit {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.credit a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.credit a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.credit.hide {
    opacity: 0;
    pointer-events: none;
} 