@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0b111e;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-effects {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 15% 50%, rgba(0, 162, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 85% 60%, rgba(255, 0, 128, 0.1) 0%, transparent 40%);
}

.bg-grid {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(0, 162, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 162, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    opacity: 0.5;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 17, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #00A2FF;
}

.nav-links a.active {
    border-bottom: 2px solid #00A2FF;
    padding-bottom: 5px;
}

.nav-inst {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-inst img {
    height: 35px;
    filter: brightness(0) invert(1);
}

.nav-inst span {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.2;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 1;
}

.portal-header {
    text-align: center;
    margin-bottom: 40px;
}

.portal-header h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.portal-header h1 span {
    display: inline-block;
    transform: scaleX(-1);
}

.portal-header p {
    color: #a0aec0;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Glass Card */
.glass-panel {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.left-panel {
    flex: 1;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.right-panel {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, transparent 70%);
    border-radius: 20px;
    margin: -20px -20px -20px 0;
    padding: 40px;
}

/* Typography Inside Card */
.glass-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.glass-panel h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #cbd5e0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.glass-panel p.desc {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 30px;
    line-height: 1.5;
}

.label {
    display: block;
    font-size: 0.75rem;
    color: #cbd5e0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #00A2FF;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: #a0aec0;
}

.form-options a {
    color: #a0aec0;
    text-decoration: none;
}

.form-options a:hover {
    color: #fff;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, #00d2ff 0%, #00a2ff 100%);
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 162, 255, 0.4);
}

.btn-link {
    display: block;
    text-align: center;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-link:hover {
    color: #fff;
}

/* Right Panel specific */
.cube-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 162, 255, 0.5));
}

.student-input {
    display: flex;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.student-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.student-input button {
    background: rgba(0, 162, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0 15px;
    color: #00d2ff;
    cursor: pointer;
    transition: background 0.3s;
}

.student-input button:hover {
    background: rgba(0, 162, 255, 0.4);
}

.right-panel p.desc {
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 0.8rem;
    background: #080d16;
}

footer a {
    color: #718096;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        flex-direction: column;
        padding: 20px;
    }
    
    .left-panel {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .right-panel {
        padding-left: 0;
        margin: 0;
        padding: 20px 0 0 0;
        background: none;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================================
   TERMINAL SERVER DASHBOARD (dashboard_ip.html)
   ========================================================= */

.terminal-body {
    background-color: #030508;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-scanlines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.3;
}

.terminal-bg-glow {
    position: fixed;
    top: 50%; left: 50%;
    width: 80vw; height: 80vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 162, 255, 0.03) 0%, transparent 60%);
    z-index: -1;
}

/* Header */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 20, 40, 0.5);
    border-bottom: 1px solid rgba(0, 162, 255, 0.3);
    border-top: 2px solid #00A2FF;
}

.mono-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #00A2FF;
    letter-spacing: 1px;
}

.mono-text.muted {
    color: #4a5568;
    margin: 0 10px;
}

.status-indicator {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background: #FF0055;
}

.status-indicator.online {
    background: #00FF9D;
    box-shadow: 0 0 10px #00FF9D;
    animation: blink 2s infinite;
}

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

.btn-disconnect {
    background: rgba(255, 0, 85, 0.1);
    color: #FF0055;
    border: 1px solid #FF0055;
    padding: 5px 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-disconnect:hover {
    background: #FF0055;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

/* Main Container */
.terminal-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.system-id {
    margin-bottom: 40px;
    border-left: 3px solid #00A2FF;
    padding-left: 20px;
}

.system-id h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.5);
}

.system-id h2 {
    font-size: 1.1rem;
    color: #00A2FF;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.sys-info p {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.sys-info strong { color: #00FF9D; }

/* Grid */
.terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
}

.terminal-card {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(0, 162, 255, 0.2);
    border-radius: 4px;
    padding: 20px;
    text-decoration: none;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.terminal-card:hover {
    border-color: #00A2FF;
    background: rgba(0, 162, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.led {
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 10px;
}
.led.green { background: #00FF9D; box-shadow: 0 0 5px #00FF9D; }
.led.blue { background: #00A2FF; box-shadow: 0 0 5px #00A2FF; }
.led.yellow { background: #FFD700; box-shadow: 0 0 5px #FFD700; }
.led.purple { background: #B000FF; box-shadow: 0 0 5px #B000FF; }
.led.grey { background: #718096; }

.module-id {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #718096;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.terminal-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 1px;
}

.terminal-card p {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-footer {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #00A2FF;
    font-weight: 700;
}

.terminal-card:hover .card-footer {
    color: #00FF9D;
}

.config-card {
    border-color: rgba(255, 255, 255, 0.1);
}
.config-card:hover {
    border-color: #718096;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}
.config-card:hover .card-footer {
    color: #fff;
}

/* Footer */
.terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #030508;
    border-top: 1px solid rgba(0, 162, 255, 0.2);
}

.terminal-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-branding img {
    height: 20px;
}

.terminal-branding span {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #4a5568;
}

