:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-color: #07C160;
    /* WeChat Green */
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --hover-bg: rgba(255, 255, 255, 0.5);
    --active-bg: rgba(7, 193, 96, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
}

/* Background Blobs for Glassmorphism effect */
.background-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #07C160;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #a18cd1;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #fbc2eb;
}

/* Main Container */
.glass-container {
    width: 95%;
    height: 90vh;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.3);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo h2 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.filter-section {
    margin-bottom: 16px;
}

.search-box {
    margin-bottom: 12px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.date-picker-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 14px;
    border-radius: 12px;
}

.date-picker-box label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.date-picker-box input[type="date"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

.date-picker-box input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.date-picker-box input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.clear-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.report-count {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 12px;
}

.report-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.report-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-item:hover {
    background: var(--hover-bg);
}

.report-item.active {
    background: var(--active-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.report-date {
    font-size: 14px;
}

.report-item .download-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
}

.report-item:hover .download-icon {
    opacity: 1;
}

.report-item .download-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar {
    padding: 20px 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    font-size: 18px;
    font-weight: 600;
}

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

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

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.download-btn:hover {
    background: #059048;
    transform: translateY(-1px);
}

.content-viewer {
    flex: 1;
    position: relative;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

iframe.active {
    display: block;
}

.placeholder-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 16px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}