/* ==========================================================================
   Bespoke/PC Custom Webmail & Productivity Suite - Stylesheet v7.0
   Contact View Switcher (Tiles vs List) & Contact Editing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.12);
    --primary-glow: rgba(59, 130, 246, 0.3);
    
    --coral: #ff5a4e;
    --coral-hover: #e0483c;
    --coral-light: rgba(255, 90, 78, 0.15);

    --bg-base: #050505;
    --bg-surface: #0b0f17;
    --bg-surface-elevated: #111827;
    --bg-sidebar: #080c14;
    --bg-hover: #162032;
    --bg-active: #1f2d47;
    --border-color: #1e293b;
    --border-color-subtle: #0f172a;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-inverse: #050505;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7);
    --shadow-glass: 0 22px 60px rgba(0, 0, 0, 0.85);

    --sidebar-width: 260px;
    --list-width: 380px;
    --header-height: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-sidebar: #f1f5f9;
    --bg-hover: #e2e8f0;
    --bg-active: #cbd5e1;
    --border-color: #e2e8f0;
    --border-color-subtle: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Column Resizers / Drag Splitters */
.column-resizer {
    width: 6px;
    background: transparent;
    cursor: col-resize;
    z-index: 50;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    user-select: none;
}

.column-resizer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 2px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    transition: background-color 0.2s ease, width 0.2s ease, left 0.2s ease;
}

.column-resizer:hover::after,
.column-resizer.resizing::after {
    background-color: var(--primary);
    width: 4px;
    left: 1px;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Prevent text selection and iframe interception during drag operations */
body.resizing-active {
    user-select: none !important;
    cursor: col-resize !important;
}

body.resizing-active iframe {
    pointer-events: none !important;
}

/* Ensure SVG icons are always visible and properly sized */
svg.lucide, .btn-icon svg, .module-nav-btn svg, .action-btn svg, .btn-primary svg, .btn-logout-action svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 20;
    transition: width 0.05s ease;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 16px 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color-subtle);
}

/* Bespoke/PC Brand Header */
.brand-block {
    display: flex;
    flex-direction: column;
    user-select: none;
}

.brand-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.brand-bespoke {
    color: var(--text-primary);
}

.brand-slash {
    color: var(--coral);
    font-style: italic;
    font-weight: 700;
    padding: 0 1px;
}

.brand-pc {
    color: var(--primary);
}

.brand-sub {
    font-family: 'Manrope', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navigation Sections */
.sidebar-nav-section, .sidebar-folders-section {
    padding: 16px 14px 4px 14px;
}

.nav-section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 6px;
}

.sidebar-module-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.module-nav-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.module-nav-btn.active {
    background-color: var(--primary-light);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

/* Compose Button */
.compose-btn-wrapper {
    padding: 12px 14px 4px 14px;
}

.btn-compose {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition);
}

.btn-compose:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Folders */
.folder-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.folder-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.folder-item.active {
    background-color: var(--bg-hover);
    color: var(--primary);
    font-weight: 600;
}

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

.unread-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Sidebar Footer & Sign Out */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-sidebar);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clear Sign Out Button */
.btn-logout-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout-action:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ffffff;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Message List Pane */
.message-list-pane {
    width: var(--list-width);
    background-color: var(--bg-surface);
    border-right: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    transition: width 0.05s ease;
}

.pane-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color-subtle);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-bar {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color-subtle);
    overflow-x: auto;
}

.filter-chip {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-chip:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-chip.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.message-list {
    flex: 1;
    overflow-y: auto;
}

.message-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color-subtle);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.message-card:hover {
    background-color: var(--bg-hover);
}

.message-card.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.message-card.unread .msg-sender,
.message-card.unread .msg-subject {
    font-weight: 700;
    color: var(--text-primary);
}

.message-card.unread::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 14px;
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
}

.msg-top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.msg-sender {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.msg-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.msg-subject {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Detail Reader Pane */
.message-detail-pane {
    flex: 1;
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.detail-header {
    height: var(--header-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-bar {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.action-btn.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.detail-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: var(--bg-surface);
    margin: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.email-body-iframe {
    width: 100%;
    border: none;
    min-height: 400px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 32px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 680px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

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

.modal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.composer-editor {
    min-height: 200px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--bg-sidebar);
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
    padding: 10px 20px;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Contact View Switcher & List View Table */
.contact-view-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.contact-view-btn:hover {
    color: var(--text-primary);
}

.contact-view-btn.active {
    background-color: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

.contacts-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contacts-list-table th {
    background: var(--bg-base);
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.contacts-list-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color-subtle);
    vertical-align: middle;
}

.contacts-list-table tr:hover td {
    background-color: var(--bg-hover);
}

.contacts-list-table tr:last-child td {
    border-bottom: none;
}

/* Calendar Toolbar & View Switcher */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.calendar-nav-group, .calendar-center-group, .calendar-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-mode-selector {
    display: flex;
    background-color: var(--bg-base);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    gap: 2px;
}

.cal-view-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.cal-view-btn:hover {
    color: var(--text-primary);
}

.cal-view-btn.active {
    background-color: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

/* Month Grid */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-weekday-header {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 0;
    letter-spacing: 0.05em;
}

.cal-day-cell {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 100px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.cal-day-cell:hover {
    border-color: var(--primary);
}

.cal-day-cell.outside-month {
    opacity: 0.4;
    background: var(--bg-base);
}

.cal-day-cell.today {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.cal-day-number {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-day-cell.today .cal-day-number {
    color: var(--primary);
}

.cal-event-chip {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: var(--transition);
}

.cal-event-chip:hover {
    filter: brightness(1.2);
    transform: translateX(2px);
}

/* Calendar & Contacts Grids */
.events-grid, .contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card, .contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.event-card:hover, .contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.event-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
