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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f4c5c 0%, #1a7f6b 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.login-card h2 {
    text-align: center;
    color: #0f4c5c;
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 10px;
}

.tab-btn.active {
    background: #1a7f6b;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
}

button {
    width: 100%;
    padding: 12px;
    background: #1a7f6b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 12px;
}

.chat-page {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.3);
}

.chat-header {
    background: #1a7f6b;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    width: auto;
    padding: 5px 15px;
    background: #0f4c5c;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 70%;
    word-wrap: break-word;
}

.message.me {
    background: #1a7f6b;
    color: white;
    margin-left: auto;
}

.message.other {
    background: rgba(255,255,255,0.9);
    margin-right: auto;
}

.chat-input {
    display: flex;
    padding: 15px;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    margin: 0;
}

.chat-input button {
    width: auto;
    padding: 12px 20px;
}

.owner-page {
    background: #f0f0f0;
}

.owner-container {
    display: flex;
    height: 100vh;
}

.owner-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: #1a7f6b;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-btn {
    width: 40px;
    background: #0f4c5c;
    font-size: 20px;
}

.user-list {
    flex: 1;
    overflow-y: auto;
}

.owner-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.owner-chat .chat-messages {
    background-size: cover !important;
    background-position: center !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

.placeholder {
    text-align: center;
    padding: 50px;
    color: #999;
}
