/**
 * MPD Tax Calculator - Full Screen Modern Dashboard
 * Beautiful, professional, intuitive interface for staff
 */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-dark: #1a202c;
    
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --topbar-height: 70px;
    --sidebar-width: 260px;
}

/* ====================
   Global Reset
   ==================== */
.mpd-fullscreen-dashboard * {
    box-sizing: border-box;
}

.mpd-fullscreen-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
}

/* ====================
   Top Bar
   ==================== */
.mpd-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.mpd-topbar-left,
.mpd-topbar-center,
.mpd-topbar-right {
    flex: 1;
}

.mpd-topbar-center {
    display: flex;
    justify-content: center;
}

.mpd-topbar-right {
    display: flex;
    justify-content: flex-end;
}

/* Logo */
.mpd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.mpd-logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.mpd-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Page Title */
.mpd-page-title {
    text-align: center;
    color: white;
}

.mpd-page-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mpd-page-title p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

/* User Menu */
.mpd-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 50px;
}

.mpd-user-avatar {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.mpd-user-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.mpd-user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.mpd-logout-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.mpd-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mpd-logout-icon {
    font-size: 18px;
}

/* ====================
   Main Container
   ==================== */
.mpd-main-container {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

/* ====================
   Sidebar
   ==================== */
.mpd-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mpd-nav-menu {
    padding: 20px 16px;
    flex: 1;
}

.mpd-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.mpd-nav-item:hover {
    background: var(--bg-primary);
    color: var(--primary);
    transform: translateX(4px);
}
#mpd-tax-plugin .mpd-nav-item{
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mpd-tax-plugin .mpd-nav-item.active {
    background: #000;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mpd-nav-icon {
    font-size: 20px;
}

.mpd-nav-text {
    flex: 1;
}

/* Sidebar Footer */
.mpd-sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border);
}

.mpd-quick-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpd-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
}

.mpd-stat-icon {
    font-size: 24px;
}

.mpd-stat-info {
    flex: 1;
}

.mpd-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

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

/* ====================
   Content Area
   ==================== */
.mpd-content-area {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}

.mpd-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mpd-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Header */
.mpd-content-header {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.mpd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.mpd-breadcrumb span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.mpd-breadcrumb-sep {
    opacity: 0.5;
}

/* Content Body */
.mpd-content-body {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Info Banner */
.mpd-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border: 2px solid #4299e1;
    border-radius: 12px;
    max-width: 900px;
    margin: 30px auto;
}

.mpd-info-icon {
    font-size: 24px;
}

.mpd-info-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #2c5282;
}

.mpd-info-text strong {
    display: block;
    margin-bottom: 4px;
}

/* ====================
   Form Enhancements
   ==================== */
.mpd-tax-calculator-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

/* ====================
   Responsive Design
   ==================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .mpd-topbar {
        padding: 0 20px;
    }
    
    .mpd-logo-text {
        display: none;
    }
    
    .mpd-page-title h1 {
        font-size: 20px;
    }
    
    .mpd-page-title p {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 70px;
        --topbar-height: 60px;
    }
    
    .mpd-topbar-center {
        display: none;
    }
    
    .mpd-user-info,
    .mpd-nav-text {
        display: none;
    }
    
    .mpd-nav-item {
        justify-content: center;
        padding: 12px;
    }
    
    .mpd-sidebar-footer {
        padding: 12px 8px;
    }
    
    .mpd-stat-item {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }
    
    .mpd-content-body {
        padding: 20px;
    }
}

/* ====================
   Loading & Transitions
   ==================== */
.mpd-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mpd-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ====================
   Print Styles
   ==================== */
@media print {
    .mpd-topbar,
    .mpd-sidebar,
    .mpd-content-header {
        display: none !important;
    }
    
    .mpd-content-area {
        position: static;
    }
    
    .mpd-tab-pane {
        display: block !important;
    }
}
