@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f766e;
    --primary-hover: #0f5e57;
    --accent-amber: #f59e0b;
    --accent-graphite: #111827;
    --accent-ink: #0b121e;

    --secondary-color: #4b5563;
    --background: #f4f3ef;
    --surface: #fcfbf9;
    --surface-strong: #ffffff;
    --text-primary: #0b121e;
    --text-secondary: #5b6472;
    --border-color: #e4e1da;

    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 18px 32px rgba(15, 23, 42, 0.16);

    --gradient-hero: linear-gradient(135deg, rgba(15, 118, 110, 0.16) 0%, rgba(245, 158, 11, 0.12) 50%, rgba(15, 23, 42, 0.08) 100%);
    --gradient-links: linear-gradient(135deg, #0b121e 0%, #0f766e 45%, #f59e0b 100%);

    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
}

body {
    font-family: "IBM Plex Sans", "Space Grotesk", system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

main .container {
    position: relative;
}

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

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Abstract brush stroke effect */
.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.28) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(252, 251, 249, 0.96);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 56px 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    background: var(--surface-strong);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.2);
    transform: translateY(-2px);
}

.login-info {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* Header */
.header {
    background: rgba(252, 251, 249, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

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

.logo-img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    color: var(--text-secondary);
    letter-spacing: -0.3px;
}

.login-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.logout-btn {
    padding: 8px 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--border-color);
}

/* Main Content */
.main {
    padding: 40px 0 60px;
    min-height: calc(100vh - 140px);
    position: relative;
}

/* Abstract artistic background elements */
.main::before {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.main::after {
    content: '';
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Dashboard Layout */
.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 480px) minmax(260px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.hero-left,
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-links {
    position: sticky;
    top: 110px;
}

.dashboard-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 24px;
    align-items: start;
}

.dashboard-panel {
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid rgba(12, 18, 30, 0.08);
    overflow: hidden;
}

.dashboard-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 118, 110, 0.04);
}

.dashboard-panel-header h2 {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.panel-subtitle,
.current-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.dashboard-panel-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 28px 28px;
}

.widget {
    background: transparent;
    border-radius: var(--radius-lg);
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
}

.widget:hover {
    box-shadow: none;
    transform: translateY(-4px);
}

.widget-header {
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(12, 18, 30, 0.08);
    background: transparent;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.widget-body {
    padding: 16px 0 8px;
}

.widget--inline .widget-header {
    border-bottom: none;
    padding-bottom: 0;
}

.widget--inline .widget-body {
    padding: 0;
}

.widget--section {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(12, 18, 30, 0.08);
}

.widget--section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget--links {
    background: linear-gradient(135deg, rgba(11, 18, 30, 0.96) 0%, rgba(15, 118, 110, 0.92) 55%, rgba(245, 158, 11, 0.9) 100%);
    color: #f8fafc;
    border: none;
    box-shadow: var(--shadow-lg);
}

.widget--links:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(8, 12, 20, 0.3);
}

.widget--links .widget-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
}

.widget--links .widget-title {
    color: #f8fafc;
}

.widget--links .widget-body {
    padding: 32px;
}

.widget--links .quicklink-icon {
    font-size: 30px;
}

/* Welcome Widget */
.welcome-content {
    text-align: center;
}

.profile-picture {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--gradient-links) padding-box, var(--gradient-links) border-box;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.2);
    transition: all 0.3s ease;
}

.welcome-content {
    text-align: left;
}

.welcome-content h2 {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.welcome-message {
    font-size: 15px;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.3);
}

.welcome-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-message {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.date-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Announcements Widget */
.announcements-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.announcement-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.announcement-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.announcement-author {
    font-weight: 500;
}

.announcement-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Quick Links Widget */
.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.quicklink-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quicklink-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-links);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.quicklink-item:hover::before {
    opacity: 0.08;
}

.quicklink-item:hover {
    background: var(--surface-strong);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.18);
}

.quicklink-icon {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quicklink-content {
    position: relative;
    z-index: 1;
}

.quicklink-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.quicklink-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.widget--links .quicklinks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.widget--links .quicklink-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.widget--links .quicklink-item::before {
    opacity: 0.12;
}

.widget--links .quicklink-item:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(8, 12, 20, 0.3);
}

.widget--links .quicklink-content h4,
.widget--links .quicklink-content p {
    color: #f8fafc;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Widget Loading States */
[class*="-loading"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

[class*="-error"] {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-text {
    color: #dc2626;
    margin-bottom: 16px;
    font-weight: 500;
}

.retry-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: var(--primary-hover);
}

/* Tasks Widget */
.tasks-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.task-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
}

.task-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.task-add-btn {
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-add-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(99, 102, 241, 0.03);
    border-color: var(--primary-color);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.task-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.task-delete {
    padding: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.task-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.tasks-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Weather Widget */
.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.weather-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.weather-temp {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.temp-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.temp-unit {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
}

.weather-details {
    text-align: center;
}

.weather-location {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.weather-condition {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.weather-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.weather-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Widget */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.stat-icon {
    font-size: 32px;
    line-height: 1;
}

.stat-details {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Organizational Unit Widget */
.org-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.org-icon {
    font-size: 48px;
    line-height: 1;
}

.org-details {
    flex: 1;
}

.org-path {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.org-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.org-units-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.org-units-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-unit-item {
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.org-unit-item.current {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: var(--primary-color);
}

.org-unit-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.org-unit-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.org-unit-path {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Groups Widget */
.groups-summary {
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-icon {
    font-size: 24px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.group-item {
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.group-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

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

.group-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.group-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.group-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.group-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.no-groups {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Email Widget */
.email-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
}

.email-icon {
    font-size: 56px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.email-count-wrapper {
    text-align: center;
}

.email-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.email-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-details {
    margin-top: 20px;
}

.email-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius);
}

.breakdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.email-actions {
    text-align: center;
    padding: 12px 0;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.email-updated {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Calendar Widget */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.calendar-date {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-icon {
    font-size: 32px;
    line-height: 1;
}

.date-day {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.date-full {
    font-size: 14px;
    color: var(--text-secondary);
}

.calendar-summary {
    text-align: right;
}

.appointments-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: block;
}

.appointments-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-event {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative;
}

.calendar-event.event-now {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: var(--primary-color);
    border-width: 2px;
}

.calendar-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.1);
}

.event-time {
    min-width: 80px;
    text-align: right;
}

.event-start {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.event-duration {
    font-size: 13px;
    color: var(--text-secondary);
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-location,
.event-attendees {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.calendar-empty {
    text-align: center;
    padding: 40px 20px;
}

.calendar-empty p {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.calendar-updated {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Error Hints */
.error-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Error Page */
.error-message {
    color: #dc2626;
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #fee2e2;
    border-radius: var(--radius);
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-links {
        position: static;
    }

    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        flex-direction: column;
        gap: 12px;
    }

    .quicklinks-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .login-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .quicklinks-grid {
        grid-template-columns: 1fr;
    }

    .user-name {
        display: none;
    }
}

/* ============================================
   NEW DASHBOARD LAYOUT
   ============================================ */

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget--welcome {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget--welcome .widget-body {
    padding: 0;
}

/* Compact Email Widget */
.widget--email {
    background: transparent;
}

.widget--email .widget-body {
    padding: 0;
}

.email-widget--compact .email-loading {
    padding: 16px;
}

.email-compact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface-strong);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
}

.email-compact-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.email-compact-icon {
    display: block;
    margin-top: 5px;
}

.email-compact-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.email-compact-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: auto;
}

.email-compact-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.email-detail-item strong {
    color: var(--text-primary);
}

.email-compact-arrow {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Prominent Quick Links */
.widget--quicklinks-prominent {
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--surface-strong), var(--surface-strong)), var(--gradient-links);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.widget--quicklinks-prominent .widget-header {
    border-bottom: none;
    padding-bottom: 16px;
}

.widget--quicklinks-prominent .widget-title {
    font-size: 20px;
    font-weight: 700;
}

.widget--quicklinks-prominent .widget-body {
    padding: 0;
}

.widget--quicklinks-prominent .quicklinks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.widget--quicklinks-prominent .quicklink-item {
    padding: 28px 20px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.widget--quicklinks-prominent .quicklink-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.widget--quicklinks-prominent .quicklink-content h4 {
    font-size: 16px;
}

/* Calendar Widget */
.widget--calendar {
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget--calendar .widget-header {
    border-bottom: none;
    padding-bottom: 8px;
}

.widget--calendar .widget-body {
    padding: 0;
}

/* Past events styling */
.calendar-event.event-past {
    opacity: 0.5;
}

.calendar-event.event-past:hover {
    opacity: 0.7;
}

/* Meet link button */
.event-meet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #00897b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.event-meet-link:hover {
    background: #00796b;
    transform: translateY(-1px);
}

.event-meet-link::before {
    content: "📹";
}

/* Tasks Widget */
.widget--tasks {
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget--tasks .widget-header {
    border-bottom: none;
    padding-bottom: 8px;
}

.widget--tasks .widget-body {
    padding: 0;
}

/* Sidebar Widgets */
.widget--sidebar {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.widget--sidebar .widget-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.widget--sidebar .widget-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.widget--sidebar .widget-body {
    padding: 0;
}

/* Compact Org Unit Widget */
.orgunit-widget--compact .orgunit-loading {
    padding: 20px;
}

.org-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 300px;
    overflow-y: auto;
}

.org-hierarchy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    opacity: 0.6;
}

.org-hierarchy-item:hover {
    background: var(--background);
    opacity: 1;
}

.org-hierarchy-item.ancestor {
    opacity: 0.85;
    color: var(--text-primary);
}

.org-hierarchy-item.current {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--text-primary);
    font-weight: 600;
    opacity: 1;
}

.org-hierarchy-item .org-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.org-hierarchy-item .org-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-hierarchy-item .org-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Announcements Banner */
.announcements-banner,
.announcements-section {
    margin-bottom: 24px;
}

.announcements-widget--centered {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 118, 110, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    text-align: center;
}

.announcements-widget--centered .announcement-item {
    border-bottom: none;
    padding-bottom: 0;
}

.announcements-widget--centered .announcement-item h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.announcements-widget--centered .announcement-meta {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dashboard-sidebar .widget--sidebar {
        flex: 1;
        min-width: 200px;
    }

    .widget--quicklinks-prominent .quicklinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .email-compact-details {
        display: none;
    }

    .widget--quicklinks-prominent .quicklinks-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TIMEZONE WIDGET
   ============================================ */

.widget--timezones .widget-body {
    padding: 0;
}

.timezones-widget .timezones-loading {
    padding: 12px;
}

.timezones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timezone-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--background);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.timezone-item:hover {
    background: rgba(15, 118, 110, 0.08);
}

.timezone-abbrev {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 28px;
}

.timezone-time {
    font-size: 13px;
    font-weight: 700;
    font-family: "Space Grotesk", monospace;
    color: var(--primary-color);
}

/* ============================================
   COMPACT CALENDAR WIDGET (Sidebar)
   ============================================ */

.widget--calendar-sidebar .widget-body {
    padding: 0;
}

.calendar-widget--compact .calendar-loading {
    padding: 20px;
}

.calendar-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-compact-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-compact-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.calendar-compact-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-events-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.calendar-event-compact {
    padding: 10px 12px;
    background: var(--background);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.calendar-event-compact:hover {
    background: rgba(15, 118, 110, 0.08);
}

.calendar-event-compact.event-now {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-left-color: var(--accent-amber);
}

.calendar-event-compact.event-past {
    opacity: 0.5;
    border-left-color: var(--text-secondary);
}

.event-compact-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-compact-time .now-badge {
    background: var(--accent-amber);
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    text-transform: uppercase;
}

.event-compact-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-compact-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.event-compact-meet {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #00897b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.event-compact-meet:hover {
    background: #00796b;
}

.calendar-empty-compact {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ============================================
   ANNOUNCEMENTS WIDGET (Dynamic)
   ============================================ */

.announcements-widget .announcements-loading {
    padding: 20px;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 118, 110, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}

.announcement-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.announcement-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.announcement-author-image {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.announcement-author-info {
    flex: 1;
    min-width: 0;
}

.announcement-subject {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.announcement-author-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.announcement-author-name strong {
    color: var(--text-primary);
}

.announcement-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}

.announcement-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.announcement-delete {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announcement-delete:hover {
    background: #dc2626;
    color: white;
}

.announcements-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.announcements-admin {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-add-announcement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-links);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-announcement:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-announcement .btn-icon {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 18, 30, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: "Space Grotesk", sans-serif;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

#announcement-form {
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--surface-strong);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.btn-cancel {
    padding: 12px 24px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-submit {
    padding: 12px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

