/* MonicaOS CRM: Blue-Grey & Silver Elegant Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
  --primary: #262626; 
  --fiorello-blue: rgba(123, 168, 188, 0.45);  /* Pastel Airy Blue */
  --mk-black: rgba(45, 45, 45, 0.45);        /* Pastel Airy Black/Charcoal */
  --personal-pink: rgba(217, 167, 176, 0.45);  /* Pastel Airy Rose */
  --home-purple: rgba(166, 157, 188, 0.45);    /* Pastel Airy Lavender */
  --family-gold: rgba(232, 208, 130, 0.45);    /* Pastel Airy Gold */
  --glass: rgba(255, 255, 255, 0.35); 
  --glass-border: rgba(255, 255, 255, 0.3);
  --card-glass: rgba(255, 255, 255, 0.2);
  --font-luxury: "Cormorant Garamond", serif; /* Nearest for 'Srame'/High-Contrast */
  --font-clean: "Calibri Light", "Calibri", sans-serif;
  --accent-gold: linear-gradient(135deg, #d4af37 0%, #f7e7b4 100%);
  --pantone-521: #D2A0D2; /* Lavender */
  --pantone-556: #8BB394; /* Sage */
  --pantone-8062: #9B7677; /* Dusty Rose / Σάπιο Μήλο */
}

/* MK Advertising Sovereign Theme */
body.mk-crm {
  --blue-grey: #8D8782; /* Pantone 409 Mid Taupe */
  --grey: #C1C6C8;      /* Pantone 428 Light Grey */
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(141, 135, 130, 0.3);
  --card-glass: rgba(255, 255, 255, 0.45);
}

/* Hide all icons as requested */
i.fas, i.far, i.fab {
    display: none !important;
}

body.mk-crm {
    background: url('assets/background for MK.JPG') no-repeat center center fixed;
    background-size: cover;
}

/* Global Portal Enhancements */
body.portal {
    background: linear-gradient(135deg, #2b3d47 0%, #1a1a1a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body.portal .app-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 100px 200px rgba(0,0,0,0.5);
    width: 90vw;
    max-width: 1200px;
    height: auto;
    min-height: 700px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    width: 100%;
}

.brand-portal-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.brand-portal-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-15px);
    border-color: var(--blue-grey);
}

.brand-portal-card img {
    max-width: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Global Navigation Top Bar / Switcher */
.brand-switcher {
    display: flex;
    width: 100%;
    background: rgba(0,0,0,0.05);
    padding: 10px 30px;
    border-bottom: 1px solid var(--glass-border);
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.switch-pill {
    display: flex;
    background: var(--card-glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5px;
    gap: 5px;
}

.switch-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary);
    opacity: 0.5;
}

.switch-btn.active {
    background: var(--blue-grey);
    color: #fff;
    opacity: 1;
}

.switch-btn:hover:not(.active) {
    opacity: 0.8;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-clean);
  background: linear-gradient(135deg, #f0eee9 0%, #b6cfe6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

/* Main Wrapper for Glassmorphism */
.app-wrapper {
  width: 95vw;
  min-height: 90vh;
  margin: 40px auto;
  background: var(--glass);
  backdrop-filter: none; /* Removed all blur as requested */
  -webkit-backdrop-filter: none;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  display: flex;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.1);
  position: relative;
}

#detail-timeline-tasks {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 15px;
  scroll-behavior: smooth;
}

#detail-timeline-tasks::-webkit-scrollbar {
  width: 6px;
}

#detail-timeline-tasks::-webkit-scrollbar-thumb {
  background: var(--blue-grey);
  border-radius: 10px;
}

/* Year Selector Widget */
.year-selector {
  display: flex;
  gap: 15px;
  background: var(--card-glass);
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 25px;
  justify-content: flex-end;
  width: fit-content;
  margin-left: auto;
}

.year-btn {
  background: none;
  border: none;
  font-family: var(--font-luxury);
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

.year-btn.active {
  opacity: 1;
  border-bottom: 2px solid var(--primary);
}

.year-btn:hover {
  opacity: 0.8;
}

.year-btn span {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 5px;
  font-family: var(--font-clean);
  font-weight: 500;
}

/* Sidebar Navigation */
.sidebar {
  width: 250px;
  background: transparent;
  border-right: 1px solid var(--glass-border);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-luxury);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--blue-grey);
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.nav-item {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.nav-item:hover, .nav-item.active {
  background: var(--grey); /* Grey active state as requested */
  color: var(--primary);
  font-weight: 600;
}

/* Main Dashboard Area */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: 90vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

header h1.brand-font {
  font-family: var(--font-luxury);
  font-size: 3.3rem; /* Reduced by 30% from 4.8rem */
  margin: 0;
  color: var(--primary);
  line-height: 1.1;
}

header p {
  font-size: 1rem; /* Reduced by 30% from 1.4rem */
  opacity: 0.7;
  letter-spacing: 1.2px;
}

/* Cards & Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.stat-card {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  padding: 35px; /* Increased padding */
  border-radius: 32px; /* Smoother curve */
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat-card.highlighted {
  border: 1px solid var(--blue-grey);
  background: rgba(182, 207, 230, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
}

/* Quick Actions Styles */
.quick-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.action-btn {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  padding: 12px 25px;
  border-radius: 25px; /* Fully rounded buttons */
  font-family: var(--font-clean);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.action-btn:hover {
  background: var(--blue-grey);
  color: #fff;
  border-color: var(--blue-grey);
}

/* Metrics Grid Styles */
.metrics-grid .metric-card {
  background: var(--card-glass);
  padding: 40px; /* Increased padding for 'air' */
  border-radius: 32px; /* Smoother curve */
  border: 1px solid var(--glass-border);
}

.metric-card {
  background: var(--card-glass);
  padding: 40px; /* Standardizing 'air' */
  border-radius: 32px;
  border: 1px solid var(--glass-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-luxury);
  font-size: 2.5rem;
  color: var(--blue-grey);
}

.metric-text {
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-card.declined .metric-num {
  color: var(--grey);
}

.stat-label {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 10px;
}

/* Portfolio/Client Section */
.client-section {
  margin-top: 60px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

a.client-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.client-card {
  background: var(--card-glass);
  padding: 40px; /* Increased padding */
  border-radius: 32px; /* Smoother curve */
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.client-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--blue-grey);
}

.client-card h3 {
  font-family: var(--font-luxury);
  font-size: 2rem; /* Reduced by 30% from 2.8rem */
  margin: 0 0 10px 0;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.client-card p.event-meta {
  font-family: var(--font-clean);
  font-size: 0.75rem; /* Reduced as well */
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin: 0;
}

.client-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.client-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reserve-btn {
    font-family: var(--font-clean);
    font-size: 1.05rem; /* Bigger font as requested */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
}

/* Legal & Consent Badges */
.consent-panel {
    background: var(--card-glass);
    padding: 35px;
    border-radius: 32px; /* Consistency */
    border: 1px solid var(--glass-border);
}

.consent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.legal-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
}

.legal-status {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
}

.status-ok { 
    background: var(--pantone-556); 
    color: #fff; 
    border-radius: 20px; 
    padding: 6px 15px;
    letter-spacing: 1px;
}

.status-no { 
    background: var(--pantone-8062); 
    color: #fff; 
    border-radius: 20px; 
    padding: 6px 15px;
    letter-spacing: 1px;
}

/* Album Flow Styles */
.album-flow {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.album-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--glass-border);
    z-index: 1;
}

.flow-step {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    color: var(--secondary);
}

.flow-step.active {
    background: var(--blue-grey);
    color: #fff;
    border-color: var(--blue-grey);
}

.flow-step.current {
    background: #fff;
    border: 2px solid var(--blue-grey);
    color: var(--primary);
}

.reserve-btn:hover {
    opacity: 1;
    color: var(--primary);
}

/* Pulse Responsive Fixes */
.pulse-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .app-wrapper {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        flex-direction: column;
    }
    .main-content {
        padding: 40px 20px;
    }
    .portal-grid {
        grid-template-columns: 1fr 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .brand-portal-card {
        padding: 40px 20px;
    }
    .header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .metric-card {
        padding: 15px;
    }
    h1 { font-size: 2rem !important; }
}

@media print {
    .sidebar, .header-actions, .year-selector, .nav-item, #export-brief-btn, .action-btn, aside { display: none !important; }
    .main-content { margin: 0 !important; width: 100% !important; padding: 0 !important; }
    body, .app-wrapper { background: #fff !important; color: #000 !important; display: block !important; }
    .app-wrapper { border: none !important; }
    .metric-card, .ephemeris-strip, .stat-card { 
        border: 1px solid #eee !important; 
        box-shadow: none !important; 
        background: #fff !important;
        break-inside: avoid;
    }
    .brand-font { font-size: 3rem !important; color: #000 !important; }
    .stat-value { color: #000 !important; }
    .badge { border: 1px solid #000 !important; color: #000 !important; background: transparent !important; }
}

/* Sovereign PIN Authentication Layer */
.pin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(43, 61, 71, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    z-index: 10000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    color: #fff;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pin-overlay[style*="display: flex"] {
    display: flex !important;
}

.pin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    width: 90vw;
    max-width: 400px;
    box-shadow: 0 100px 200px rgba(0,0,0,0.5);
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.pin-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-dot.filled {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 33%);
    gap: 20px;
    justify-items: center;
    margin-bottom: 30px;
}

.pin-key {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin-key:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pin-error {
    color: #ff4d4d;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-top: 20px;
    font-weight: 700;
}

