/* Terminal Container */
.terminal-container {
    max-width: 1000px;
    width: 100%;
    height: 600px; /* Fixed height for scrollability */
    background: rgba(15,15,15,0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8),inset 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Terminal Header */
.terminal-header {
    background: rgba(10,10,10,0.95);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0; /* Prevent header from shrinking */
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.3);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}

.terminal-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255,255,255,0.3), inset 0 1px 1px rgba(255,255,255,0.3);
}

.close {
    background: linear-gradient(135deg, #ff5f57 0%, #ff5f57 100%);
    border-color: #e0443e;
}

.close:hover {
    background: linear-gradient(135deg, #ff6b63 0%, #ff6b63 100%);
}

.minimize {
    background: linear-gradient(135deg, #ffbd2e 0%, #ffbd2e 100%);
    border-color: #dea123;
}

.minimize:hover {
    background: linear-gradient(135deg, #ffc943 0%, #ffc943 100%);
}

.maximize {
    background: linear-gradient(135deg, #28c840 0%, #28c840 100%);
    border-color: #1aab29;
}

.maximize:hover {
    background: linear-gradient(135deg, #34d94c 0%, #34d94c 100%);
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Make terminal body scrollable */
.terminal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Neofetch Layout */
.neofetch-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    margin-bottom: 30px;
    flex-shrink: 0; /* Prevent content from shrinking */
}

.ascii-section {
    min-width: 280px;
}

.ascii-art {
    color: #ffffff;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: 0;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
    white-space: pre;
    margin: 0 0 14px 0;
    font-family: 'Courier New', monospace;
    tab-size: 4;
    -moz-tab-size: 4;
    word-break: keep-all;
    overflow-wrap: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.info-line {
    display: flex;
    align-items: center;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid transparent;
}

.info-line:hover {
    background: rgba(255,255,255,0.05);
    border-left-color: #fff;
    transform: translateX(5px);
}

.info-label {
    color: #666;
    min-width: 120px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-separator {
    color: #444;
    margin: 0 10px;
}

.info-value {
    color: #e5e5e5;
    flex: 1;
}

.info-value a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.info-value a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}

.info-value a:hover::before {
    width: 100%;
}

.info-value a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Role Container */
.role-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.role-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s;
}

.role-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.role-box-content {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.divider {
    height: 1px;
    background: linear-gradient(to right,transparent,rgba(255,255,255,0.1),transparent);
    margin: 20px 0;
}

.color-bar {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.color-block {
    width: 40px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cb-1 { background: #0a0a0a; }
.cb-2 { background: #1a1a1a; }
.cb-3 { background: #333333; }
.cb-4 { background: #4d4d4d; }
.cb-5 { background: #666666; }
.cb-6 { background: #999999; }
.cb-7 { background: #cccccc; }
.cb-8 { background: #ffffff; }

.system-info {
    color: #888;
    font-size: 11px;
    margin: 20px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.command-section {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 4px;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0;
}

.prompt {
    color: #0f0;
    margin-right: 8px;
    font-weight: 500;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    outline: none;
    font-size: 13px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #0f0;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
/* App Icons */
.app-icon {
position: fixed; 
bottom: 20px;
width: 60px; 
height: 60px;
background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); 
border-radius: 12px;
display: none; 
align-items: center; 
justify-content: center; 
cursor: pointer; 
z-index: 100;
border: 2px solid rgba(255,255,255,0.2); 
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon:hover { 
transform: translateY(-8px) scale(1.05); 
box-shadow: 0 8px 25px rgba(0,0,0,0.7); 
border-color: rgba(255,255,255,0.5); 
}

.app-icon.active { 
display: flex; 
}

.app-icon svg { 
width: 30px; 
height: 30px; 
fill: #e5e5e5; 
transition: transform 0.3s; 
}

.app-icon:hover svg { 
transform: scale(1.1); 
}

.terminal-icon { 
left: 20px; 
}

.logs-icon { 
left: 90px; 
}

/* Center GIF */
.center-gif {
position: fixed; 
top: 50%; 
left: 50%; 
transform: translate(-50%, -50%);
display: none; 
z-index: 50; 
border-radius: 12px; 
overflow: hidden;
box-shadow: 0 25px 50px rgba(0,0,0,0.8); 
border: 2px solid rgba(255,255,255,0.1);
opacity: 0;
transition: opacity 0.4s ease-in-out;
}

.center-gif.active {
display: block;
}

.center-gif img { 
display: block; 
max-width: 400px; 
max-height: 400px; 
width: auto; 
height: auto; 
}

/* Logs Container */
.logs-container {
max-width: 600px; 
width: 100%; 
background: rgba(15,15,15,0.95); 
backdrop-filter: blur(10px); 
border-radius: 8px;
box-shadow: 0 25px 50px rgba(0,0,0,0.8),inset 0 0 0 1px rgba(255,255,255,0.1);
overflow: hidden; 
position: fixed; 
top: 50%; 
left: 50%; 
transform: translate(-50%, -50%);
z-index: 200; 
display: none;
}

.logs-container.active { 
display: block; 
}

.logs-header {
background: rgba(10,10,10,0.95); 
padding: 12px 16px; 
display: flex; 
align-items: center; 
gap: 8px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logs-title {
flex: 1; 
text-align: center; 
color: #888; 
font-size: 12px; 
font-weight: 400; 
letter-spacing: 1px;
}

.logs-body { 
padding: 30px; 
max-height: 500px; 
overflow-y: auto; 
font-size: 13px; 
line-height: 1.6;
}

.log-entry { 
margin-bottom: 16px; 
padding: 12px; 
background: rgba(255,255,255,0.02); 
border-radius: 6px; 
border-left: 3px solid #666; 
transition: all 0.3s;
}

.log-entry:hover { 
background: rgba(255,255,255,0.05); 
border-left-color: #fff; 
transform: translateX(5px);
}

.log-date { 
color: #666; 
font-size: 11px; 
margin-bottom: 6px; 
text-transform: uppercase; 
letter-spacing: 0.5px;
}

.log-content { 
color: #e5e5e5; 
line-height: 1.5;
}

/* PDF Modal */
.pdf-modal { 
display: none; 
position: fixed; 
top: 0; 
left: 0; 
width: 100%; 
height: 100%; 
background: rgba(0,0,0,0.95); 
z-index: 1000;
}

.pdf-modal.active { 
display: flex; 
align-items: center; 
justify-content: center;
}

.pdf-container { 
width: 90%; 
height: 90%; 
max-width: 1200px; 
background: #1a1a1a; 
border-radius: 8px; 
overflow: hidden; 
display: flex; 
flex-direction: column; 
box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.pdf-header { 
background: #0a0a0a; 
padding: 12px 20px; 
display: flex; 
justify-content: space-between; 
align-items: center; 
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pdf-title { 
color: #e5e5e5; 
font-size: 14px; 
font-weight: 500;
}

.pdf-close { 
background: transparent; 
border: none; 
color: #e5e5e5; 
font-size: 24px; 
cursor: pointer; 
width: 32px; 
height: 32px; 
display: flex; 
align-items: center; 
justify-content: center; 
border-radius: 4px; 
transition: all 0.2s;
}

.pdf-close:hover { 
background: rgba(255,255,255,0.1);
}

.pdf-viewer { 
flex: 1; 
overflow: auto; 
display: flex; 
align-items: center; 
justify-content: center; 
padding: 20px;
}

.pdf-viewer iframe { 
width: 100%; 
height: 100%; 
border: none; 
background: #fff;
}
/* Simple solution - just hide the default cursor */
#command-input {
flex: 1;
background: transparent;
border: none;
color: #fff;
font-family: monospace;
outline: none;
font-size: 13px;
caret-color: transparent; /* This hides the default text cursor */
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #0f0;
    margin-left: 12px; /* More spacing */
    animation: blink 1s infinite;
}

/* Hide the cursor when input doesn't have focus */
#command-input:not(:focus) + .cursor {
display: none;
}