/* Soviet Terminal Style */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

body {
    background-color: #0c0c0c;
    color: #DC143C;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    height: 100vh;
    overflow: hidden;
}

.terminal-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #333;
}

.terminal-header {
    background-color: #1a1a1a;
    border-bottom: 2px solid #8B0000;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
}

.header-text {
    font-size: 12px;
    line-height: 1.2;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(220, 20, 60, 0.02) 2px,
        rgba(220, 20, 60, 0.02) 4px
    );
}

.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.message {
    margin-bottom: 15px;
    line-height: 1.4;
}

.user-message {
    color: #ff6600;
    text-shadow: 0 0 5px #ff6600;
}

.bot-message {
    color: #DC143C;
    text-shadow: 0 0 5px #DC143C;
    margin-left: 20px;
}

.system-message {
    color: #ff6600;
    text-shadow: 0 0 5px #ff6600;
    border-left: 3px solid #ff6600;
    padding-left: 10px;
    margin-bottom: 20px;
}

.error-message {
    color: #8B0000;
    text-shadow: 0 0 5px #8B0000;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #1a1a1a;
    border-top: 2px solid #333;
}

.prompt {
    color: #DC143C;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 5px #DC143C;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ff6600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    text-shadow: 0 0 5px #ff6600;
}

.terminal-input::placeholder {
    color: #666;
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #0d0d0d;
    border-top: 1px solid #333;
}

.control-btn {
    background: transparent;
    border: 1px solid #666;
    color: #cccccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
    text-shadow: 0 0 5px #ff6600;
}

/* Typing animation */
.typing::after {
    content: '█';
    animation: blink 1s infinite;
}

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

/* Retro CRT effect */
.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.1) 4px,
        rgba(0, 0, 0, 0.1) 6px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Animation for new messages */
.message {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload Interface Styles */
.upload-container {
    background-color: #1a1a1a;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 15px 20px;
    margin-top: 10px;
}

.upload-header {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.file-input {
    background: transparent;
    border: 1px solid #666;
    color: #00ffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 8px;
    margin-right: 10px;
    width: 300px;
}

.file-input::-webkit-file-upload-button {
    background: transparent;
    border: 1px solid #666;
    color: #cccccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 4px 8px;
    margin-right: 10px;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button:hover {
    border-color: #00ff00;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.upload-btn {
    background: transparent;
    border: 1px solid #666;
    color: #cccccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    border-color: #ffff00;
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.upload-status {
    margin-top: 10px;
    font-size: 12px;
    min-height: 20px;
}

/* Profile Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-window {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 3px solid #8B0000;
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.5), inset 0 0 20px rgba(139, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
}

.modal-header {
    background-color: #8B0000;
    color: #ffcc00;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8B0000;
}

.modal-title {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.modal-close {
    background: transparent;
    border: 2px solid #0c0c0c;
    color: #0c0c0c;
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.modal-close:hover {
    background-color: #ff4444;
    color: #ffffff;
    border-color: #ff4444;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #DC143C;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #8B0000;
    border-radius: 4px;
}

.loading {
    text-align: center;
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
    font-size: 16px;
    padding: 40px;
    animation: pulse 1.5s infinite;
}

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

/* Profile Photo Styles */
.profile-photo {
    width: 240px !important;
    height: 240px !important;
    border: 3px solid #8B0000;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    margin: 20px auto;
    display: block;
    object-fit: cover;
}

.profile-card {
    background-color: #1a1a1a;
    border: 2px solid #8B0000;
    padding: 30px;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    text-align: center;
}

.profile-info {
    margin-top: 20px;
    color: #DC143C;
    text-shadow: 0 0 5px #DC143C;
}

.profile-username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-status {
    font-size: 12px;
    color: #ff6600;
    margin-top: 5px;
}