/* text33 Retro Mobile App Style */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    color: #1e3c72;
    padding: 8px 12px;
    text-align: center;
    border-bottom: 2px solid #1e3c72;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
}

/* Navigation Menu */
.nav-menu {
    background: #2a5298;
    border-bottom: 2px solid #1e3c72;
    padding: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-menu li {
    border-bottom: 1px solid #1e3c72;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    background: #2a5298;
    transition: background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #1e3c72;
    color: #ffd700;
}

.nav-menu a:active {
    background: #0f2d5a;
}

/* Main Content */
.main-content {
    display: flex;
    height: calc(100vh - 120px);
}

/* Chat Area */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #333333;
}

.chat-header {
    background: #2a5298;
    color: #ffffff;
    padding: 8px 12px;
    border-bottom: 2px solid #1e3c72;
    font-weight: bold;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: #f5f5f5;
}

.message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    background: #ffffff;
    border-left: 3px solid #2a5298;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666666;
}

.username {
    font-weight: bold;
    color: #2a5298;
}

.timestamp {
    color: #999999;
}

.message-content {
    color: #333333;
    word-wrap: break-word;
}

.gift-message {
    background: #fff3cd;
    border-left-color: #ffd700;
}

.gift-message .message-content {
    color: #856404;
}

/* Input Area */
.input-area {
    background: #f8f9fa;
    padding: 8px;
    border-top: 2px solid #1e3c72;
}

.message-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #2a5298;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #ffffff;
    color: #333333;
}

.message-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.send-button {
    background: #2a5298;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-top: 4px;
}

.send-button:hover {
    background: #1e3c72;
}

.send-button:active {
    background: #0f2d5a;
}

/* Users Panel */
.users-panel {
    width: 200px;
    background: #2a5298;
    border-left: 2px solid #1e3c72;
    overflow-y: auto;
}

.users-header {
    background: #1e3c72;
    color: #ffffff;
    padding: 8px 12px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #0f2d5a;
}

.user-item {
    padding: 8px 12px;
    border-bottom: 1px solid #1e3c72;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
}

.user-item:hover {
    background: #1e3c72;
}

.user-item.online {
    border-left: 4px solid #28a745;
}

.user-item.offline {
    opacity: 0.6;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: #ffd700;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    color: #1e3c72;
    font-size: 12px;
}

/* Dashboard */
.dashboard {
    padding: 16px;
    background: #ffffff;
    color: #333333;
    min-height: calc(100vh - 120px);
}

.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.room-card {
    background: #f8f9fa;
    border: 2px solid #2a5298;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.room-card:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.room-name {
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 4px;
}

.room-description {
    color: #666666;
    font-size: 12px;
    margin-bottom: 8px;
}

.room-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999999;
}

/* Forms */
.form-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #2a5298;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #2a5298;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
}

.btn {
    background: #2a5298;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #1e3c72;
}

.btn-primary {
    background: #2a5298;
}

.btn-success {
    background: #28a745;
}

.btn-warning {
    background: #ffc107;
    color: #333333;
}

.btn-danger {
    background: #dc3545;
}

/* Credits Display */
.credits-display {
    background: #ffd700;
    color: #1e3c72;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
}

/* Gift System */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 8px;
}

.gift-item {
    background: #ffffff;
    border: 2px solid #2a5298;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gift-item:hover {
    border-color: #ffd700;
    background: #fff3cd;
}

.gift-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gift-name {
    font-size: 10px;
    color: #333333;
    font-weight: bold;
}

.gift-price {
    font-size: 10px;
    color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .users-panel {
        width: 100%;
        height: 150px;
        border-left: none;
        border-top: 2px solid #1e3c72;
    }
    
    .room-list {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 20px;
    color: #666666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #2a5298;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 4px solid #dc3545;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 4px solid #28a745;
} 