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

body {
    font-family: 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 70%);
    z-index: -1;
}

/* Matrix-like background effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, transparent 0%, rgba(0, 255, 0, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.05) 2px, rgba(0, 255, 0, 0.05) 4px);
    animation: matrix 10s linear infinite;
    z-index: -1;
}

@keyframes matrix {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

/* Section Styles */
.section {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

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

/* Terminal Styles */
.terminal-container {
    width: 80%;
    max-width: 800px;
    background-color: #111;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    overflow: hidden;
    border: 1px solid #00ff00;
}

.terminal-header {
    background-color: #222;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.button.close {
    background-color: #ff5f56;
}

.button.minimize {
    background-color: #ffbd2e;
}

.button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: #00ff00;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
}

.terminal-output {
    margin-bottom: 20px;
    line-height: 1.5;
}

.welcome {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 10px;
}

.system {
    color: #00cc00;
    margin-bottom: 5px;
    animation: typing 1s steps(40, end);
}

.prompt {
    color: #00ff00;
    margin-top: 20px;
}

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

.cursor {
    color: #00ff00;
    font-weight: bold;
    animation: blink 1s infinite;
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

#access-code {
    background-color: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    flex: 1;
}

/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #00ff00;
}

.dashboard-header h1 {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.username {
    color: #00ff00;
    font-weight: bold;
}

#logout-btn {
    background-color: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: #00ff00;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background-color: rgba(17, 17, 17, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    transform: translateY(-5px);
}

.dashboard-card h2 {
    color: #00ff00;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #00ff00;
}

/* Tools Section */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-item {
    background-color: rgba(34, 34, 34, 0.8);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #00ff00;
}

.tool-item h3 {
    color: #00ff00;
    margin-bottom: 5px;
}

.tool-item p {
    color: #00cc00;
    font-size: 14px;
    margin-bottom: 10px;
}

.tool-btn {
    background-color: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #00ff00;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Community Section */
.community-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.community-item {
    background-color: rgba(34, 34, 34, 0.8);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #00ff00;
}

.community-item h3 {
    color: #00ff00;
    margin-bottom: 5px;
}

.community-item p {
    color: #00cc00;
    font-size: 14px;
    margin-bottom: 10px;
}

.community-btn {
    background-color: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-btn:hover {
    background-color: #00ff00;
    color: #0a0a0a;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background-color: rgba(34, 34, 34, 0.8);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #00ff00;
}

.news-item h3 {
    color: #00ff00;
    margin-bottom: 5px;
}

.news-item p {
    color: #00cc00;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-date {
    color: #888;
    font-size: 12px;
}

/* System Status */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.status-label {
    color: #00cc00;
}

.status-value {
    color: #00ff00;
    font-weight: bold;
}

.status-value.online {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.status-value.high {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 10px;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
}