@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dangrek&display=swap');

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
}

body {
    color: #595a5a;
}

.wireframe {
    position: relative;
    width: 1440px;
    min-height: 1020px;
    background-color: #ffffff;
    margin: 0 auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 92px;
    background-color: #1a2044;
    z-index: 1000;
}

/* Logo */
.logo {
    position: fixed;
    top: 22px;
    left: 55px;
    font-family: 'Dangrek', cursive;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.72px;
    line-height: 1.32;
    z-index: 1001;
}

/* User Profile */
.user-profile {
    position: fixed;
    top: 8px;
    right: 200px;
    width: 290px;
    z-index: 1001;
}

.user-name {
    position: absolute;
    top: 20px;
    right: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.48px;
    line-height: 1.32;
    width: 219px;
    text-align: right;
}

.user-role {
    position: absolute;
    top: 52px;
    right: 0;
    font-size: 16px;
    font-weight: 200;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -0.32px;
    line-height: 1.32;
    width: 219px;
    text-align: right;
}

.profile-image {
    position: absolute;
    top: 8px;
    right: -100px;
    width: 73px;
    height: 73px;
    border-radius: 50%;
    background-image: url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 73 73%22><defs><radialGradient id=%22grad%22><stop offset=%220%%22 style=%22stop-color:rgb(226,169,119);stop-opacity:1%22 /><stop offset=%22100%%22 style=%22stop-color:rgb(139,111,71);stop-opacity:1%22 /></radialGradient></defs><circle cx=%2236.5%22 cy=%2236.5%22 r=%2236.5%22 fill=%22url(%23grad)%22/><ellipse cx=%2236.5%22 cy=%2220%22 rx=%2215%22 ry=%2216%22 fill=%22%23D4A373%22/><g fill=%22%23D4A373%22><path d=%22M 20 35 Q 20 45 36.5 48 Q 53 45 53 35%22/><circle cx=%2224%22 cy=%2232%22 r=%224%22 fill=%22%23654321%22/><circle cx=%2249%22 cy=%2232%22 r=%224%22 fill=%22%23654321%22/></g></svg>');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Cards */
.card {
    background-color: #f1e6d4;
    border-radius: 28px;
    padding: 30px;
    position: absolute;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.48px;
    line-height: 1.32;
    margin-bottom: 20px;
    text-align: center;
}

/* Welcome Card - Top Left */
.welcome-card {
    top: 140px;
    left: 40px;
    width: 670px;
    height: 183px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card .welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.72px;
    line-height: 1.32;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

/* Illustration Card - Top Right */
.illustration-card {
    top: 140px;
    right: 40px;
    width: 670px;
    height: 183px;
}

/* Daily Financial Data Card - Middle Left */
.daily-card {
    top: 343px;
    left: 40px;
    width: 670px;
    height: 360px;
    overflow-y: auto;
}

.chart-container {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    position: relative;
}

.chart-tooltip {
    position: absolute;
    background-color: rgba(26, 32, 68, 0.95);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-point {
    cursor: pointer;
    transition: r 0.2s ease, fill 0.2s ease;
}

.chart-point:hover {
    r: 5;
    fill: #3a7bc8;
}

.bar-chart {
    width: 100%;
    height: auto;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 12px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Weekly Revenue Card - Middle Right */
.weekly-card {
    top: 343px;
    right: 40px;
    width: 670px;
    height: 360px;
}

.line-chart {
    width: 100%;
    height: auto;
}

/* Performance Table Card - Bottom Left */
.performance-card {
    top: 723px;
    left: 40px;
    width: 670px;
    height: 267px;
    overflow-y: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table thead {
    border-bottom: 2px solid #d4c4b0;
}

.performance-table th {
    font-size: 18px;
    font-weight: 700;
    padding: 12px 8px;
    text-align: center;
    color: #000000;
    letter-spacing: -0.36px;
    line-height: 1.32;
}

.performance-table tbody tr {
    border-bottom: 1px solid #e8dcc4;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.performance-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.performance-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.performance-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.performance-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.performance-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.performance-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.performance-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.performance-table tbody tr:nth-child(8) { animation-delay: 0.8s; }

.performance-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.performance-table td {
    padding: 10px 8px;
    text-align: center;
    font-size: 16px;
    color: #595a5a;
}

/* Payment Methods Card - Bottom Right */
.payment-card {
    top: 723px;
    right: 40px;
    width: 670px;
    height: 267px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pie-chart-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.pie-chart {
    flex-shrink: 0;
    animation: spin 2s ease-in-out;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pie-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .wireframe {
        width: 100%;
    }

    .header {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: #ffffff;
    }

    .wireframe {
        background-color: #ffffff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e8dcc4;
    }
}
