:root {
    --bg-dark: #090d16;
    --bg-card: rgba(20, 26, 40, 0.65);
    --bg-card-hover: rgba(30, 39, 60, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Vibrant Colorful Palette */
    --jira-blue: #0052CC;
    --jira-blue-light: #38bdf8;
    --jira-bg: linear-gradient(135deg, rgba(0, 82, 204, 0.25), rgba(38, 132, 255, 0.25));
    
    --zoho-green: #10b981;
    --zoho-green-light: #34d399;
    --zoho-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));

    --primary-gradient: linear-gradient(135deg, #F18926 0%, #ea580c 50%, #f97316 100%);
    --primary-accent: #F18926;
    --primary-accent-hover: #d97706;
    
    --priority-high: #f43f5e;
    --priority-medium: #fbbf24;
    --priority-low: #38bdf8;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Abstract Background Glowing Orbs */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 137, 38, 0.22) 0%, rgba(249, 115, 22, 0.12) 40%, transparent 70%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    transition: background 0.4s ease;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(16, 185, 129, 0.15) 50%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    transition: background 0.4s ease;
}

/* Jira Blue Theme Overrides */
body.theme-jira {
    --primary-gradient: linear-gradient(135deg, #0052CC 0%, #2684FF 50%, #38bdf8 100%);
    --primary-accent: #2684FF;
    --primary-accent-hover: #0052CC;
}
body.theme-jira::before {
    background: radial-gradient(circle, rgba(38, 132, 255, 0.35) 0%, rgba(0, 82, 204, 0.15) 50%, transparent 70%);
}
body.theme-jira::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(0, 82, 204, 0.15) 50%, transparent 70%);
}
body.theme-jira .nav-item.active {
    background: linear-gradient(135deg, #0052CC 0%, #2684FF 100%);
    box-shadow: 0 8px 25px rgba(38, 132, 255, 0.45);
    color: #ffffff;
}
body.theme-jira .btn-primary {
    background: linear-gradient(135deg, #0052CC 0%, #2684FF 100%);
    box-shadow: 0 6px 20px rgba(38, 132, 255, 0.45);
}
body.theme-jira .item-card:hover {
    border-color: rgba(38, 132, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(38, 132, 255, 0.25);
}

/* Zoho Green Theme Overrides */
body.theme-zoho {
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --primary-accent: #10b981;
    --primary-accent-hover: #059669;
}
body.theme-zoho::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.15) 50%, transparent 70%);
}
body.theme-zoho::after {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
}
body.theme-zoho .nav-item.active {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}
body.theme-zoho .btn-primary {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
body.theme-zoho .item-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(16, 185, 129, 0.25);
}

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Sidebar Styling */
.sidebar {
    width: 270px;
    background: rgba(13, 18, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    gap: 28px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 6px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(241, 137, 38, 0.4));
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.nav-item i {
    font-size: 18px;
    width: 22px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(241, 137, 38, 0.4);
}

.badge {
    margin-left: auto;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
}
.jira-badge { 
    background: rgba(59, 130, 246, 0.2); 
    color: var(--jira-blue-light); 
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.zoho-badge { 
    background: rgba(16, 185, 129, 0.2); 
    color: var(--zoho-green-light); 
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Main Layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: transparent;
}

/* Top Header */
.top-header {
    height: 76px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 100;
}

.search-box {
    position: relative;
    width: 380px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.search-box input:focus {
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(241, 137, 38, 0.25);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.select-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.select-input:hover {
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.08);
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 28px 32px 14px 32px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.jira-card::before { background: linear-gradient(90deg, #0052CC, #2684FF); }
.zoho-card::before { background: linear-gradient(90deg, #10b981, #06b6d4); }

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.metric-icon {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.nav-logo-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-item:hover .nav-logo-icon,
.nav-item.active .nav-logo-icon {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.header-logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
}

.card-logo-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.jira-card .metric-icon { 
    background: rgba(255, 255, 255, 0.92); 
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.zoho-card .metric-icon { 
    background: rgba(255, 255, 255, 0.92); 
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.metric-info .metric-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.metric-info .metric-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Content Container */
.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 12px 32px 28px 32px;
}

.view-panel {
    display: none;
    flex: 1;
    min-height: 0;
}

.view-panel.active {
    display: flex;
    flex-direction: column;
}

/* Dual Column Layout */
.dual-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.column-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.column-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.column-header.jira-border { 
    border-top: 4px solid var(--jira-blue-light); 
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
}
.column-header.zoho-border { 
    border-top: 4px solid var(--zoho-green-light); 
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, transparent 100%);
}

.column-header h3 {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-filter-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.column-filter-select:hover, .column-filter-select:focus {
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.12);
}

.column-filter-select option {
    background: #121826;
    color: var(--text-main);
}

.pill {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-main);
    font-weight: 700;
}

.cards-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Ticket/Task Cards */
.item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.item-card:hover {
    border-color: rgba(241, 137, 38, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(241, 137, 38, 0.15);
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-key {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-open { 
    background: rgba(56, 189, 248, 0.15); 
    color: #38bdf8; 
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.status-progress { 
    background: rgba(251, 191, 36, 0.15); 
    color: #fbbf24; 
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.status-closed { 
    background: rgba(52, 211, 153, 0.15); 
    color: #34d399; 
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.status-hold {
    background: rgba(241, 137, 38, 0.18);
    color: #fb923c;
    border: 1px solid rgba(241, 137, 38, 0.3);
}
.status-selected {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-backlog {
    background: rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.assignee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ticket-people {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.owner-label strong {
    color: var(--zoho-green-light);
}

.customer-label {
    font-size: 11px;
    color: var(--text-muted);
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(241, 137, 38, 0.3);
    flex-shrink: 0;
}

.priority-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.priority-High { color: var(--priority-high); }
.priority-Medium { color: var(--priority-medium); }
.priority-Low { color: var(--priority-low); }

/* Grid View for Dedicated Tabs */
.full-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-shrink: 0;
}

.section-title {
    margin-bottom: 0;
}

.tab-filter-select {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Settings Form Styling */
.settings-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.settings-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.settings-card .subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.form-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px rgba(241, 137, 38, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 28px 0;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(241, 137, 38, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(241, 137, 38, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.status-msg {
    margin-left: 16px;
    font-size: 14px;
    font-weight: 700;
}
.status-msg.success { color: var(--zoho-green-light); }
.status-msg.error { color: var(--priority-high); }

.loading-spinner, .error-banner {
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.error-banner {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.cert-type-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

/* Fullscreen Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e1e38 0%, #0b0c10 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.auth-card {
    background: rgba(22, 27, 46, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 440px;
    max-width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(241, 137, 38, 0.15);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand .brand-logo {
    margin: 0 auto 12px auto;
    background: transparent;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 16px rgba(241, 137, 38, 0.4));
}

.auth-brand h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 4px;
}
.auth-brand h2 span {
    color: var(--jira-blue-light);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-header {
    margin-bottom: 20px;
    text-align: center;
}
.auth-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.auth-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.demo-credentials-banner {
    background: rgba(59, 130, 246, 0.1);
    border: 1px dashed rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.demo-credentials-banner code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-family: monospace;
}

.auth-error-msg {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.auth-success-msg {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.auth-toggle {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-toggle a {
    color: var(--jira-blue-light);
    font-weight: 600;
    text-decoration: none;
}
.auth-toggle a:hover {
    text-decoration: underline;
}

/* Profile Icon & Dropdown Menu */
.profile-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(241, 137, 38, 0.4);
    transition: all 0.2s ease;
}

.profile-icon-btn i {
    pointer-events: none;
}

.profile-icon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 137, 38, 0.6);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 12px 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    display: none;
}

.profile-dropdown-menu.show-menu {
    display: block !important;
}

.dropdown-header {
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}


/* ==========================================================================
/* ==========================================================================
   Funky Sticky Note Widget (Sidebar - Tall Fit-in)
   ========================================================================== */
.sticky-note-wrapper {
    padding: 10px 4px 0 4px;
    margin: 10px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.sticky-note {
    position: relative;
    padding: 18px 16px 14px 16px;
    border-radius: 4px 4px 22px 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 4px 8px 22px rgba(0, 0, 0, 0.5), inset 0 -4px 10px rgba(0,0,0,0.06);
    font-family: 'Kalam', 'Caveat', 'Comic Sans MS', cursive, sans-serif;
    color: #1e293b;
    flex: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    transform: rotate(-1.5deg);
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 6px 14px 28px rgba(0, 0, 0, 0.55);
    z-index: 10;
}

/* Pushpin Icon */
.sticky-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #ef4444;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: pinWiggle 3.5s ease-in-out infinite;
}

@keyframes pinWiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
}

/* Color Themes */
.sticky-note.yellow {
    background: linear-gradient(135deg, #ff9f43 0%, #f18926 100%);
}
.sticky-note.pink {
    background: linear-gradient(135deg, #fbcfe8 0%, #f472b6 100%);
}
.sticky-note.green {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
}
.sticky-note.blue {
    background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 100%);
}
.sticky-note.purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #c084fc 100%);
}

.sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
}

.sticky-title-input {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    width: 90px;
}

.sticky-title-input::placeholder {
    color: rgba(30, 41, 59, 0.6);
}

.sticky-color-picker {
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.color-dot:hover {
    transform: scale(1.3);
}
.color-dot.active {
    transform: scale(1.25);
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.2);
}
.color-dot.yellow { background: #f18926; }
.color-dot.pink { background: #f472b6; }
.color-dot.green { background: #4ade80; }
.color-dot.blue { background: #38bdf8; }
.color-dot.purple { background: #c084fc; }

.sticky-note-input {
    width: 100%;
    flex: 1;
    min-height: 320px;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    color: #1e293b;
    font-weight: 600;
}

.sticky-note-input::placeholder {
    color: rgba(30, 41, 59, 0.45);
    font-style: italic;
}

.sticky-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 10px;
}

.sticky-status {
    font-size: 9px;
    font-weight: 700;
    color: rgba(30, 41, 59, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-delete-btn {
    background: transparent;
    border: none;
    color: rgba(30, 41, 59, 0.55);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.sticky-delete-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

