/* Custom Styles for New Interface */
:root {
    --primary-color: #007bff; /* Financial blue color */
    --text-color: #ffffff;
    --bg-color: #000;
    --border-glow-color: #00ffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color) url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--border-glow-color);
    overflow: hidden;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container img {
    height: 40px;
}

#main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#main-header nav li {
    margin-left: 20px;
}

#main-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

#main-header nav a:hover {
    color: var(--border-glow-color);
}

/* Header light effect */
#main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 5s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Main Content Layout */
#main-content {
    display: flex;
    flex-wrap: wrap;
    padding-top: 70px; /* Space for fixed header */
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.column {
    padding: 10px;
    box-sizing: border-box;
}

.left-column {
    flex: 1;
    min-width: 200px;
}

.center-column {
    flex: 3;
    min-width: 400px;
}

.right-column {
    flex: 1;
    min-width: 200px;
}

/* Particle effect container */
#Particle-ground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Block Styles */
.block-container {
    background-color: rgba(1, 1, 1, 0.6);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

/* Border glow effect */
.block-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, var(--border-glow-color), transparent 20%, transparent 80%, var(--border-glow-color));
    animation: border-spin 5s linear infinite;
    z-index: -1;
    border-radius: 12px;
}

@keyframes border-spin {
    to { transform: rotate(360deg); }
}

.block-container h2 {
    color: var(--border-glow-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Login Block */
.login-block {
    text-align: center;
}

.login-block input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 5px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.login-btn:hover {
    background-color: #0056b3;
}

.register-btn {
    background-color: #34495e;
    color: var(--text-color);
}

.register-btn:hover {
    background-color: #2c3e50;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
}

.logo-grid img {
    width: 80%;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-grid img:hover {
    transform: scale(1.1);
}

/* News List */
#news-feed ul {
    list-style: none;
    padding: 0;
}

#news-feed li {
    margin-bottom: 10px;
}

#news-feed a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

#news-feed a:hover {
    color: var(--border-glow-color);
    text-decoration: underline;
}

/* Footer */
#main-footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.corporate-img {
    max-width: 100%;
    height: auto;
}

/* Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 30px;
    border: 2px solid var(--border-glow-color);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--border-glow-color);
    text-align: center;
    position: relative;
    max-width: 500px;
    margin: auto;
}

.close-btn {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.modal-content p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    #main-content {
        flex-direction: column;
        padding-top: 60px;
    }
    
    .column {
        width: 100%;
    }
}