* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

.site-header {
    background: #111827;
}

.logo-bar {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0 8px;
    text-align: center;
}

.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.navbar {
    padding: 10px 0 16px;
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-links,
.auth-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-links {
    margin-left: auto;
}

.nav-links a,
.auth-links a,
.logout-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover,
.auth-links a:hover,
.logout-link:hover,
.logo:hover {
    color: #ffffff;
}

.page-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.meeting-card,
.calendar-card,
.profile-card,
.meeting-detail-card,
.auth-form,
.page-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.meeting-card {
    margin-bottom: 20px;
}

.meeting-card h2 {
    margin-top: 0;
}

.meeting-card h2 a {
    color: #111827;
    text-decoration: none;
}

.meeting-card h2 a:hover {
    color: #2563eb;
}

.meeting-detail-card {
    padding: 32px;
}

.meeting-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.edit-btn {
    background: #2563eb;
    color: #ffffff;
}

.edit-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.delete-btn {
    background: #ef4444;
    color: #ffffff;
}

.delete-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

.invite-btn {
    background: #10b981;
    color: #ffffff;
}

.invite-btn:hover {
    background: #059669;
    color: #ffffff;
}

button,
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

.btn.secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn.secondary:hover {
    background: #d1d5db;
}

.btn.danger {
    background: #dc2626;
}

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

.inline-action-form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.auth-form p,
.page-form p,
.profile-form p {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 12px;
}

input,
textarea,
select {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

textarea {
    min-height: 160px;
}

.footer {
    margin-top: 80px;
    padding: 24px 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.dashboard-header {
    margin-bottom: 24px;
}

.dashboard-header h1 {
    margin-bottom: 8px;
}

.dashboard-header p {
    color: #6b7280;
}

.auth-links .logout-form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.auth-links .logout-link {
    background: transparent;
    padding: 0;
    color: #d1d5db;
    font: inherit;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.auth-links .logout-link:hover {
    background: transparent;
    color: #ffffff;
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.message.success {
    background: #dcfce7;
    color: #166534;
}

.profile-container {
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    max-width: 700px;
    padding: 32px;
}

.profile-card h1 {
    margin-top: 0;
    text-align: center;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.profile-info {
    flex: 1;
}

.profile-info p {
    margin: 0 0 14px;
}

.profile-form {
    margin-top: 24px;
}

.profile-form .form-group {
    margin-bottom: 22px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-form textarea,
.profile-form input[type="file"] {
    width: 100%;
    max-width: 100%;
}

.profile-form input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
}

.current-avatar {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}

.current-avatar a {
    color: #2563eb;
    word-break: break-all;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.current-avatar-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.current-avatar-box img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.current-avatar-box a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.current-avatar-box a:hover {
    text-decoration: underline;
}

.profile-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.profile-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.auth-helper {
    margin-top: 18px;
    text-align: center;
    color: #6b7280;
}

.auth-helper a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-helper a:hover {
    text-decoration: underline;
}

.notifications-page {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-link {
    position: relative;
}

.notification-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.notification-item {
    display: block;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.notification-item.unread {
    font-weight: 700;
    border-left: 5px solid #2563eb;
}

.notification-date {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.participant-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
}

.participant-info p {
    margin: 0 0 6px;
}

.participant-email {
    color: #64748b;
    font-size: 14px;
}

.status-badge {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.participant-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-action-form {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.participant-btn {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.accept-btn {
    background: #2563eb;
    color: #ffffff;
}

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

.decline-btn {
    background: #ef4444;
    color: #ffffff;
}

.decline-btn:hover {
    background: #dc2626;
}

@media (max-width: 700px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        width: 100%;
    }

    .participant-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .participant-actions {
        width: 100%;
    }
}
