:root {
    --theme-main: #475569;
    --theme-light: #f1f5f9;
    --alert-main: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

/* Header */

.site-header {
    padding: 34px 30px 38px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-logo-area {
    margin-bottom: 18px;
}

.site-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.site-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #334155;
}

.site-subtitle {
    margin-top: 8px;
    color: #64748b;
    letter-spacing: .08em;
}

/* Layout */

.mypage-wrapper {
    display: flex;
    min-height: 700px;
}

.sidebar {
    width: 280px;
    background: #475569;
    padding: 30px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 16px 30px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,.15);
}

.sidebar-logout {
    width: 100%;
    padding: 16px 30px;
    border: none;
    background: transparent;
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-logout:hover {
    background: rgba(255,255,255,.15);
}

.content {
    flex: 1;
    padding: 40px;
}

/* Welcome */

.welcome-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.welcome-card h2 {
    margin-top: 0;
    color: #334155;
}

/* Information */

.info-card {
    margin-top: 25px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

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

.info-table th {
    width: 220px;
    padding: 15px;
    background: #f8fafc;
    text-align: left;
}

.info-table td {
    padding: 15px;
}

.info-table th,
.info-table td {
    border: 1px solid #e5e7eb;
}

/* QR */

.qr-box {
    margin-top: 30px;
    text-align: center;
}

.qr-box img {
    max-width: 250px;
}

/* Logout */

.logout-area {
    margin-top: 30px;
}

/* Button */

.btn {
    min-width: 220px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: #334155;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    background: #475569;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Login */

.login-card {
    max-width: 620px;
    margin: 25px auto 0;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.login-form-group {
    margin-bottom: 22px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
}

.login-form-group input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #000000;
    font-size: 18px;
}

.login-form-group input:focus {
    outline: none;
    border-color: #475569;
}

.login-actions {
    margin-top: 30px;
    text-align: center;
}

.login-actions .btn {
    width: 260px;
}

.login-error {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 10px;
    font-weight: 700;
}

/* Footer */

.site-footer {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
}

.footer-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 700;
}

.buyer-meeting-success {
    margin-top: 20px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-left: 6px solid #22c55e;
    border-radius: 12px;
    color: #166534;
    font-weight: 800;
}

.meeting-request-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 22px;
    margin-bottom: 18px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.meeting-request-main h3 {
    margin: 0 0 10px;
    color: #334155;
    font-size: 22px;
    font-weight: 800;
}

.meeting-request-main p {
    margin: 6px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.meeting-status-area {
    margin-top: 12px;
}

.meeting-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    height: 32px;

    padding: 0 12px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.status-scheduled {
    background: #dcfce7;
    color: #166534;
}

.meeting-request-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;

    min-width: 140px;
}

.meeting-request-actions form {
    margin: 0;
}

.btn-approve,
.btn-reject {
    width: 140px;
    height: 42px;

    border: none;
    border-radius: 999px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.btn-approve {
    background: #2563eb;
}

.btn-approve:hover {
    background: #1d4ed8;
}

.btn-reject {
    background: #dc2626;
}

.btn-reject:hover {
    background: #b91c1c;
}

.action-done {
    color: #64748b;
    font-weight: 800;
}

.empty-box {
    padding: 30px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: center;
    color: #64748b;
    font-weight: 800;
}

.pagination-wrap {
    margin-top: 24px;
}

.web-guide-link-wrap {
    margin-top: 14px;
}

.web-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 38px;
    padding: 0 16px;

    background: #2563eb;
    border-radius: 999px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.web-guide-link:hover {
    background: #1d4ed8;
}

.web-guide-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 14px;

    background: #f1f5f9;
    border-radius: 999px;

    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.buyer-meeting-error {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 6px solid #e11d48;
    border-radius: 12px;
    color: #9f1239;
    font-weight: 800;
}

.schedule-approve-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-approve-form select {
    width: 180px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.schedule-approve-form select:focus {
    border-color: #2563eb;
}

.meeting-notice-box {
    margin-top: 20px;
    margin-bottom: 20px;

    padding: 20px;

    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 6px solid #f97316;
    border-radius: 14px;
}

.meeting-notice-box h3 {
    margin: 0 0 12px;
    color: #9a3412;
    font-size: 18px;
    font-weight: 800;
}

.meeting-notice-box p {
    margin: 8px 0;
    color: #7c2d12;
    line-height: 1.8;
}

.meeting-notice-box strong {
    color: #dc2626;
}

.schedule-label {
    display: block;
    margin-bottom: 8px;

    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.schedule-full-message {
    padding: 12px 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    font-size: 13px;
    font-weight: 700;
}

.schedule-full-message {
    padding: 12px 16px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.schedule-time-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
    padding: 10px 14px;

    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;

    color: #1e40af;
    font-weight: 900;
}

.schedule-date {
    font-size: 16px;
}

.schedule-time {
    font-size: 15px;
}

@media (max-width: 768px) {
    .meeting-request-card {
        flex-direction: column;
    }

    .meeting-request-actions {
        width: 100%;
    }

    .btn-approve,
    .btn-reject {
        width: 100%;
    }
}

/* Mobile */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .container {
        border-radius: 12px;
    }

    .mypage-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 20px;
    }

    .site-title {
        font-size: 26px;
    }

    .welcome-card,
    .info-card,
    .login-card {
        padding: 20px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .login-actions .btn,
    .btn {
        width: 100%;
    }

    .site-header {
        padding: 24px 16px 28px;
    }

    .site-logo {
        max-width: 100%;
    }

    .site-title {
        font-size: 26px;
    }
}