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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.container {
    background: white;
    border-radius: 0;
    padding: 15px 30px;
    max-width: 1920px;
    width: 100vw;
    height: 100vh;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.8em;
}

h2 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* Auth Screen */
.form-container {
    max-width: 400px;
    margin: 0 auto;
}

.form-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-container input:focus {
    outline: none;
    border-color: #667eea;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.form-container button:hover {
    transform: translateY(-2px);
}

.form-container button:active {
    transform: translateY(0);
}

.form-container p {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.form-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.form-container a:hover {
    text-decoration: underline;
}

/* Messages */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.action-message {
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: bold;
    animation: slideDown 0.3s ease;
    flex-shrink: 0;
}

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

.action-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.action-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Game Screen */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.status-toggle-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.status-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

/* Top Stats Bar */
.top-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.top-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 80px;
    transition: all 0.3s ease;
}

.top-stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.top-stat-label {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.top-stat-value {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
}

.top-stat-value-small {
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    margin-top: 4px;
}

.top-stat-bar-container {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.top-stat-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.top-stat-item.turn-stat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Time stat styling */
.top-stat-item.time-stat {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    min-width: 90px;
}

.time-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.3em !important;
}

.top-stat-period {
    font-size: 0.65em;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
    display: block;
}

.top-stat-item.money-stat .top-stat-value {
    color: #00cec9;
}

.top-stat-item.job-stat .top-stat-value {
    color: #ffeaa7;
}

.top-stat-item.qualification-stat .top-stat-value {
    color: #fd79a8;
}

/* Look avatar styles */
.look-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.look-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.look-avatar:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.look-label {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-stat-item.look-stat {
    min-width: auto;
    padding: 8px 12px;
}

/* Responsive top stats bar */
@media (max-width: 900px) {
    .top-stats-bar {
        gap: 8px;
        padding: 12px 15px;
    }

    .top-stat-item {
        padding: 6px 10px;
        min-width: 70px;
    }

    .top-stat-value {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .top-stats-bar {
        gap: 6px;
        padding: 10px;
        justify-content: center;
    }

    .top-stat-item {
        padding: 5px 8px;
        min-width: 60px;
        flex: 1 1 calc(33% - 6px);
        max-width: calc(33% - 6px);
    }

    .top-stat-label {
        font-size: 0.65em;
    }

    .top-stat-value {
        font-size: 0.9em;
    }

    .top-stat-bar-container {
        width: 50px;
    }
}

/* Status Popup Panel */
.status-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.status-popup-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

.status-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px 20px 0 0;
}

.status-popup-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.close-status {
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-status:hover {
    color: #333;
}

.status-sections {
    padding: 20px 30px 30px 30px;
}

.status-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.status-section.turn-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    text-align: center;
}

.status-section.turn-section .label {
    color: white;
    font-size: 1.1em;
}

.status-section.turn-section .value {
    color: white;
    font-size: 1.3em;
    font-weight: bold;
}

.section-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: bold;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.status-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-item-inline .label {
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.status-item-inline .value {
    color: #1e3a5f;
    font-weight: bold;
    font-size: 1.1em;
}

.status-item-inline .status-label-text {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    margin-left: 8px;
}

.status-item-bar {
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bar-label .label {
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.bar-label .value {
    color: #1e3a5f;
    font-weight: bold;
    font-size: 1em;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
}

.happiness-bar {
    background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
}

.tiredness-bar {
    background: linear-gradient(90deg, #fdcb6e 0%, #e17055 100%);
}

.hunger-bar {
    background: linear-gradient(90deg, #ff7675 0%, #d63031 100%);
}

.items-list {
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-height: 50px;
}

.items-value {
    color: #555;
    font-weight: 500;
    font-size: 1em;
}

/* Status Panel */
.status-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 18px;
    background: white;
    border-radius: 12px;
    border-left: 5px solid #1e3a5f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-item .label {
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
}

.status-item .value {
    color: #1e3a5f;
    font-weight: 600;
    font-size: 1.05em;
}

/* City Map Panel */
.city-map-panel {
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.city-map-panel h2 {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.city-map {
    position: relative;
    background: url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=1920&h=800&fit=crop') center/cover;
    border-radius: 15px;
    padding: 0;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* London map overlay */
.city-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.15);
    z-index: 1;
}

/* Sky - hidden for London map */
.sky {
    display: none;
}

.sun {
    position: absolute;
    top: 30px;
    right: 50px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    animation: float-cloud 20s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud1 {
    width: 80px;
    height: 30px;
    top: 50px;
    left: 10%;
}

.cloud1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1::after {
    width: 40px;
    height: 40px;
    top: -20px;
    right: 10px;
}

.cloud2 {
    width: 100px;
    height: 35px;
    top: 100px;
    left: 50%;
    animation-delay: -10s;
}

.cloud2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud2::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 15px;
}

.cloud3 {
    width: 70px;
    height: 25px;
    top: 70px;
    left: 75%;
    animation-delay: -5s;
}

.cloud3::before {
    width: 45px;
    height: 45px;
    top: -20px;
    left: 10px;
}

.cloud3::after {
    width: 35px;
    height: 35px;
    top: -15px;
    right: 10px;
}

@keyframes float-cloud {
    from { transform: translateX(-100px); }
    to { transform: translateX(100vw); }
}

/* Street - hidden for London map */
.street {
    display: none;
}

/* Buildings Container - London locations */
.buildings-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.building-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* London positioning - 7 buildings in 2 rows (evenly spread) */
/* Row 1: Home, University, Job Office, John Lewis (4 items) */
/* Row 2: Estate Agent, Workplace, Food Market (3 items) */

.building-far-left {
    /* Home - top row, position 1 */
    left: 10%;
    top: 20%;
    transform: translateX(-50%);
}

.building-left {
    /* University - top row, position 2 */
    left: 36%;
    top: 20%;
    transform: translateX(-50%);
}

.building-center-left {
    /* Job Office - top row, position 3 */
    left: 62%;
    top: 20%;
    transform: translateX(-50%);
}

.building-far-right {
    /* John Lewis - top row, position 4 */
    left: 88%;
    top: 20%;
    transform: translateX(-50%);
}

.building-bottom-left {
    /* Estate Agent - bottom row, position 1 */
    left: 20%;
    top: 60%;
    transform: translateX(-50%);
}

.building-center-right {
    /* Workplace - bottom row, position 2 */
    left: 50%;
    top: 60%;
    transform: translateX(-50%);
}

.building-right {
    /* Food Market - bottom row, position 3 */
    left: 80%;
    top: 60%;
    transform: translateX(-50%);
}

.map-location {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.map-location:hover {
    transform: scale(1.15);
    z-index: 100;
}

.map-location:hover .building-structure {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
    filter: brightness(1.2);
}

.building-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.building-top {
    font-size: 4em;
    margin-bottom: 5px;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.building-body {
    display: none;
}

.building-door {
    display: none;
}

.window {
    display: none;
}

.building-label {
    font-size: 0.85em;
    font-weight: bold;
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.98);
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-top: 8px;
}

/* Building specific colors - removed as buildings are hidden */

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content h2 {
    padding: 0 30px;
    margin-top: 10px;
}

.modal-content p {
    padding: 0 30px;
}

.modal-content .modal-tabs {
    margin: 20px 30px;
}

.modal-content .tab-content {
    padding: 0 30px 30px 30px;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border-radius: 0 0 10px 10px;
}

.modal-image.university {
    background: url('https://images.unsplash.com/photo-1564981797816-1043664bf78d?w=800&h=600&fit=crop') center/cover;
}

.modal-image.job_office {
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=800&h=600&fit=crop') center/cover;
}

.modal-image.workplace {
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800&h=600&fit=crop') center/cover;
}

.modal-image.shop {
    background: url('https://images.unsplash.com/photo-1604719312566-8912e9227c6a?w=800&h=600&fit=crop') center/cover;
}

.modal-image.home {
    background: url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?w=800&h=600&fit=crop') center/cover;
}

.modal-image.john_lewis {
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=800&h=600&fit=crop') center/cover;
}

.modal-image.estate_agent {
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=800&h=600&fit=crop') center/cover;
}

.modal-cost {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
}

.time-cost {
    color: #f39c12;
    font-family: 'Courier New', monospace;
}

.time-cost.no-time {
    color: #e74c3c;
}

.modal-time-info {
    font-size: 0.9em;
    color: #888;
    margin: 5px 0 10px 0;
    font-style: italic;
}

.modal-time-info.no-time {
    color: #e74c3c;
    font-weight: bold;
    font-style: normal;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.confirm-btn, .cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.cancel-btn {
    background: #dfe6e9;
    color: #2d3436;
}

.cancel-btn:hover {
    background: #b2bec3;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    margin-top: 20px;
}

/* Chat Interface */
.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    min-height: 200px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

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

.user-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.npc-message {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.npc-message.typing {
    opacity: 0.7;
    font-style: italic;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.send-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: translateY(-2px);
}

.send-btn:active {
    transform: translateY(0);
}

/* Tablet adjustments */
@media (max-width: 900px) {
    .container {
        max-width: 90%;
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .building-body {
        width: 110px;
    }

    .buildings-container {
        padding: 0 30px;
        gap: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    .city-map {
        min-height: 250px;
    }

    .buildings-container {
        flex-wrap: wrap;
        padding: 0 20px;
        justify-content: center;
        gap: 15px;
    }

    .building-wrapper {
        width: 40%;
    }

    .building-body {
        width: 100px;
        height: 120px;
    }

    .building-structure.tall .building-body {
        height: 160px;
    }

    .building-structure.short .building-body {
        height: 100px;
    }

    .building-top {
        font-size: 2.5em;
    }

    .building-label {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    .sun {
        width: 40px;
        height: 40px;
        top: 20px;
        right: 30px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .chat-messages {
        max-height: 250px;
    }

    .modal-content {
        padding: 20px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* Shop Catalogue */
.shop-catalogue {
    margin-top: 25px;
}

.shop-catalogue h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.catalogue-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.catalogue-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.catalogue-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.item-emoji {
    font-size: 3.5em;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.item-details {
    width: 100%;
}

.item-name {
    font-weight: bold;
    color: #333;
    font-size: 1em;
    margin-bottom: 8px;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.item-cost {
    color: #28a745;
    font-weight: bold;
}

.item-calories {
    color: #666;
    font-size: 0.85em;
}

.item-category {
    color: #666;
    font-size: 0.85em;
    text-transform: capitalize;
}

/* Flat items in catalogue */
.flat-item {
    text-align: left;
    min-height: 120px;
}

.flat-item .item-details {
    text-align: left;
}

.flat-item .item-description {
    font-size: 0.8em;
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
}

.rent-cost {
    color: #dc3545;
    font-weight: bold;
}

.rent-value {
    color: #dc3545;
}

/* Course items in catalogue */
.course-item {
    text-align: left;
    min-height: 140px;
}

.course-item .item-details {
    text-align: left;
}

.course-item .item-description {
    font-size: 0.8em;
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
}

.course-prereqs {
    font-size: 0.75em;
    color: #dc3545;
    margin: 5px 0;
    font-style: italic;
}

.course-jobs {
    font-size: 0.75em;
    color: #28a745;
    margin: 5px 0;
    line-height: 1.3;
}

.course-lectures {
    color: #667eea;
    font-weight: bold;
}

.course-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.course-item.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

/* Job items in catalogue */
.job-item {
    text-align: left;
}

.job-item .item-details {
    text-align: left;
}

.job-wage {
    color: #28a745;
    font-weight: bold;
}

.job-item.current-job {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.job-item.current-job:hover {
    transform: none;
    cursor: default;
}

.job-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.job-item.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.job-look-req {
    font-size: 0.75em;
    margin: 5px 0;
}

.job-look-req.met {
    color: #28a745;
}

.job-look-req.unmet {
    color: #dc3545;
    font-style: italic;
}

.browse-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.back-btn {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Look Section in Status Panel */
.look-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.look-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.look-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.look-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.look-status-label {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

/* Action Result Popup */
.action-result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.action-result-content {
    background: white;
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-width: 450px;
    width: 90%;
}

.action-result-content.success {
    border-top: 5px solid #28a745;
}

.action-result-content.error {
    border-top: 5px solid #dc3545;
}

.action-result-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.action-result-icon.success {
    color: #28a745;
}

.action-result-icon.error {
    color: #dc3545;
}

.action-result-message {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.action-result-ok-btn {
    padding: 12px 50px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-result-ok-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Burnout Popup */
.burnout-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.5s ease;
}

.burnout-popup-content {
    background: linear-gradient(135deg, #2c0f0f 0%, #4a1a1a 100%);
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(220, 53, 69, 0.3);
    animation: burnoutSlide 0.5s ease;
    max-width: 500px;
    width: 90%;
    border: 3px solid #dc3545;
}

@keyframes burnoutSlide {
    from {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.burnout-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: burnoutShake 0.5s ease-in-out infinite;
}

@keyframes burnoutShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.burnout-title {
    font-size: 2.5em;
    color: #dc3545;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.burnout-message {
    font-size: 1.1em;
    color: #f8d7da;
    line-height: 1.6;
    margin-bottom: 15px;
}

.burnout-submessage {
    font-size: 1em;
    color: #aaa;
    font-style: italic;
    margin-bottom: 30px;
}

.burnout-ok-btn {
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.burnout-ok-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.5);
}


/* New Day Summary Popup */
.new-day-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.new-day-popup-content {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 183, 77, 0.2);
    border: 2px solid rgba(255, 183, 77, 0.3);
    animation: slideUp 0.4s ease;
}

.new-day-header {
    margin-bottom: 25px;
}

.new-day-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 10px;
    animation: sunRise 1s ease;
}

@keyframes sunRise {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.new-day-title {
    font-size: 1.8em;
    color: #ffb74d;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255, 183, 77, 0.4);
}

.new-day-number {
    font-size: 1.2em;
    color: #90caf9;
    font-weight: bold;
    background: rgba(144, 202, 249, 0.1);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
}

.new-day-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.summary-intro {
    color: #aaa;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.new-day-changes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-day-changes li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-day-changes li:last-child {
    border-bottom: none;
}

.new-day-changes .change-icon {
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}

.new-day-changes .change-negative {
    color: #ef5350;
}

.new-day-changes .change-positive {
    color: #66bb6a;
}

.new-day-changes .change-neutral {
    color: #90caf9;
}

.new-day-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.status-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px 8px;
}

.status-item .status-label {
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item .status-value {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
}

.status-item.money .status-value {
    color: #66bb6a;
}

.status-item.hunger .status-value {
    color: #ffb74d;
}

.status-item.tiredness .status-value {
    color: #90caf9;
}

.new-day-ok-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.new-day-ok-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 183, 77, 0.5);
}

/* Pass Time Button */
.pass-time-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding: 5px 0;
    flex-shrink: 0;
}

.pass-time-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pass-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #7c858d 0%, #596067 100%);
}

.pass-time-btn:active {
    transform: translateY(0);
}

.pass-time-icon {
    font-size: 1.3em;
}

.pass-time-text {
    font-weight: bold;
}

.pass-time-duration {
    font-size: 0.85em;
    opacity: 0.8;
}
