body{
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin:0;
    background:#eef1f4;
    display:flex;
    flex-direction: column;
    justify-content:flex-start;
    color:#2b2b2b;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    z-index: 20;
}

.app-title {
    font-weight: 700;
    font-size: 18px;
    color: #9a3412;
    letter-spacing: 0.5px;
}

.user-profile {
    display: flex;
    align-items: center;
    color: #4b5563;
    cursor: pointer;
}

.user-profile .material-icons {
    font-size: 32px;
}

.app-container {
    display: flex;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.refresh-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.refresh-btn:hover {
    color: #f97316;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    border: 1px solid transparent;
    background: #f9fafb;
    transition: all 0.2s;
    position: relative;
}

.history-item:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.history-item.active {
    background: #fff7ed;
    border-color: #f97316;
}

.history-date {
    font-size: 11px;
    color: #4b5563;
    margin-bottom: 4px;
}

.history-loading {
    padding: 10px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.history-no {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.history-client {
    font-size: 12px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewport {
    flex: 1;
    background: #eef1f4;
    overflow: auto;
    display: block;
    padding: 20px;
    position: relative;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background: #9a3412;
    color: white;
}

.btn-primary:hover {
    background: #7c2d12;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-icon {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
}

.btn-icon:hover {
    background: #fee2e2;
}

.history-delete {
    position: absolute;
    top: 6px;
    right: 6px;
}
