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

:root {
    --primary-color: #0078d4;
    --secondary-color: #50e6ff;
    --background-color: #f3f2f1;
    --text-color: #333;
    --border-color: #d0ccc8;
    --success-color: #107c10;
    --error-color: #d83b01;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.user-info {
    font-size: 0.95rem;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    margin-bottom: 2rem;
    color: #666;
}

.posts-section,
.wall-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.posts-section h3,
.wall-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.post-form-container {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#postContent {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-header h4 {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.85rem;
    color: #999;
}

.post-content {
    margin-top: 0.5rem;
    color: #333;
    word-wrap: break-word;
}

.no-posts {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #005a9e;
}

.btn-login,
.btn-logout {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.message {
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.message.success {
    background-color: #dffcf0;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message.error {
    background-color: #fde7e9;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.callback-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.callback-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert {
    padding: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #dffcf0;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: #fde7e9;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert h3 {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.employee-type {
    display: inline-block;
    background-color: #0078d4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.user-badge {
    background-color: #f3f2f1;
    padding: 0.75rem;
    border-left: 3px solid #0078d4;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.post-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.error-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fff4e6;
    border-left: 3px solid #ffb900;
    border-radius: 4px;
    font-size: 0.9rem;
}
.profile-section {
    max-width: 800px;
    margin: 2rem auto;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

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

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4, #50e6ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.profile-info .email {
    color: #666;
    font-size: 0.95rem;
}

.profile-details {
    border-top: 1px solid #d0ccc8;
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f2f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    width: 150px;
    color: #333;
}

.detail-row .value {
    flex: 1;
    color: #666;
}

.department {
    display: inline-block;
    background-color: #e8f4f8;
    color: #0078d4;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.department-small {
    display: inline-block;
    background-color: #e8f4f8;
    color: #0078d4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.current-user-badge {
    background-color: #f3f2f1;
    padding: 1rem;
    border-left: 4px solid #0078d4;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-type {
    background-color: #0078d4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-link {
    text-decoration: none;
    color: #0078d4;
}

.user-link:hover {
    text-decoration: underline;
}

.user-link h4 {
    margin: 0;
    color: #0078d4;
}

.user-posts-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-posts-section h3 {
    color: #0078d4;
    margin-top: 0;
}

.callback-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.callback-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #dffcf0;
    color: #107c10;
    border-left-color: #107c10;
}

.alert-success h3 {
    margin-top: 0;
    color: #107c10;
}

.alert-error {
    background-color: #fde7e9;
    color: #d83b01;
    border-left-color: #d83b01;
}

.alert-error h3 {
    margin-top: 0;
    color: #d83b01;
}

.error-message {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.error-message p {
    margin: 0.5rem 0;
}

.user-attempted {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.error-details {
    margin: 1rem 0;
}

.error-info {
    background-color: #fff4e6;
    border-left: 3px solid #ffb900;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: left;
    color: #333;
    margin: 1rem 0;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-logout-error {
    background-color: #d83b01;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn-logout-error:hover {
    background-color: #a4330a;
    text-decoration: none;
}

.btn-secondary {
    background-color: #8764b8;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #6d5383;
    text-decoration: none;
}

@media (max-width: 600px) {
    .callback-container {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-logout-error,
    .btn-secondary {
        width: 100%;
    }
}
.post-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.post-meta .employee-type {
    display: inline-block;
    background-color: #0078d4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-meta .department {
    display: inline-block;
    background-color: #e8f4f8;
    color: #0078d4;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.user-nav-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-profile {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-profile:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-icon {
    font-size: 1.2rem;
}

.btn-login,
.btn-logout {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-logout:hover {
    background-color: #d83b01;
    text-decoration: none;
    border-color: #d83b01;
}

@media (max-width: 768px) {
    .user-nav-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-profile,
    .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
    }
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.breadcrumb a:hover {
    background-color: #f3f2f1;
    text-decoration: none;
}

.profile-section {
    max-width: 800px;
    margin: 2rem auto;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

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

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078d4, #50e6ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.profile-info .email {
    color: #666;
    font-size: 0.95rem;
}

.profile-details {
    border-top: 1px solid #d0ccc8;
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f2f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    width: 150px;
    color: #333;
}

.detail-row .value {
    flex: 1;
    color: #666;
}

.detail-row .employee-type {
    display: inline-block;
    background-color: #0078d4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-posts-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-posts-section h3 {
    color: #0078d4;
    margin-top: 0;
}

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

    .profile-info h2 {
        margin: 1rem 0 0.5rem 0;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-row .label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
