:root {
    --primary: #ff4757;
    --secondary: #2f3542;
    --background: #f1f2f6;
    --white: #ffffff;
    --dark: #2f3542;
    --gray: #747d8c;
    --success: #2ed573;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    margin: 0;
    padding: 0;
    color: var(--dark);
}

/* Navigation Header */
nav {
    background: var(--white);
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

/* Containers */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

/* Cards (Dashboard & List) */
.profile-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.profile-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-info {
    padding: 15px;
}

.profile-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* Buttons */
.btn-reg, .btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

/* Admin Table Styling */
.user-list {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
}

.user-list td, .user-list th {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Chat Bubbles */
.msg {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 8px;
    max-width: 80%;
    font-size: 14px;
}
.sent { background: var(--primary); color: white; margin-left: auto; border-bottom-right-radius: 2px; }
.rcvd { background: #e4e6eb; color: black; border-bottom-left-radius: 2px; }