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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    max-width: 420px;
    margin: 100px auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
    margin-bottom: 8px;
    color: #1a1a2e;
}

.login-card p {
    color: #666;
    margin-bottom: 4px;
}

.login-card .subtitle {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Messages */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

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

.message-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.message-date {
    font-size: 0.8rem;
    color: #888;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 4px;
}

.message-body {
    color: #555;
    font-size: 0.95rem;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Utilities */
.text-muted {
    color: #888;
    font-size: 0.85rem;
}

.inline-form {
    display: inline;
    margin-top: 8px;
}

h2 {
    margin-bottom: 16px;
    color: #1a1a2e;
}
