﻿/* Header style */
.gp-header-wrapper {
    background: linear-gradient(to bottom right, #ffffff, rgba(248, 250, 252, 0.5));
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: var(--px-12);
}

.gp-header-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gp-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gp-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, var(--bs-main), var(--bs-main));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

    .gp-icon-box svg {
        width: 1.5rem;
        height: 1.5rem;
        color: white;
    }

.gp-title-section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 0.125rem;
}

.gp-title-section p {
    font-size: 0.875rem;
    color: #64748b;
}

.gp-header-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.gp-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

    .gp-search-icon svg {
        width: 1.25rem;
        height: 1.25rem;
        color: #94a3b8 !important;
        transition: color 0.2s;
    }

.gp-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .gp-search-input::placeholder {
        color: #94a3b8;
    }

    .gp-search-input:hover {
        border-color: #cbd5e1;
    }

    .gp-search-input:focus {
        outline: none;
        border-color: var(--bs-main);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }

        .gp-search-input:focus + .gp-search-icon svg {
            color: var(--bs-main);
        }

.gp-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gp-view-toggle {
    display: none;
    background-color: #f1f5f9;
    padding: 0.375rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gp-view-btn {
    position: relative;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
}

    .gp-view-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .gp-view-btn:hover {
        color: #0f172a;
        background-color: rgba(226, 232, 240, 0.5);
    }

    .gp-view-btn.gp-active {
        background-color: white;
        color: var(--bs-main);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: scale(1.05);
    }

.gp-pulse-effect {
    position: absolute;
    inset: 0;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
    animation: gp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gp-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.gp-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--bs-main), var(--bs-main-400));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

    .gp-add-btn:hover {
        box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
        transform: scale(1.05);
    }

    .gp-add-btn:active {
        transform: scale(0.95);
    }

    .gp-add-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }

/* body style */
.gp-view-body {
    max-height: 100vh;
    overflow: auto;
}

.gp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    padding: 0;
    animation: gp-fade-in 0.5s ease-in-out;
}

@keyframes gp-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-card {
    position: relative;
    background: linear-gradient(to bottom right, #ffffff, rgba(248, 250, 252, 0.5));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .gp-card:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-color: rgba(59, 130, 246, 0.2);
    }

.gp-card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.05), transparent);
    border-radius: 50%;
    filter: blur(2rem);
    transform: translate(50%, -50%);
    transition: transform 0.7s;
}

.gp-card:hover .gp-card-glow {
    transform: translate(50%, -50%) scale(1.5);
}

.gp-card-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gp-card-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.gp-card:hover .gp-card-avatar {
    transform: scale(1.1);
}

.gp-card-avatar svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--bs-main);
}

.gp-card-title {
    flex: 1;
    min-width: 0;
}

    .gp-card-title h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s;
    }

.gp-card:hover .gp-card-title h3 {
    color: var(--bs-main);
}

.gp-card-id {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
}

.gp-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.gp-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gp-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

    .gp-card-icon svg {
        width: 1rem;
        height: 1rem;
    }

.gp-icon-blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.gp-card-info:hover .gp-icon-blue {
    background-color: #dbeafe;
}

.gp-icon-purple {
    background-color: #faf5ff;
    color: #9333ea;
}

.gp-card-info:hover .gp-icon-purple {
    background-color: #f3e8ff;
}

.gp-icon-amber {
    background-color: #fffbeb;
    color: #d97706;
}

.gp-card-info:hover .gp-icon-amber {
    background-color: #fef3c7;
}

.gp-icon-emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.gp-card-info:hover .gp-icon-emerald {
    background-color: #d1fae5;
}

.gp-card-info span {
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .gp-tag svg {
        width: 0.875rem;
        height: 0.875rem;
    }

.gp-tag-gray {
    background-color: #f1f5f9;
    color: #475569;
}

.gp-card:hover .gp-tag-gray {
    background-color: #e2e8f0;
}

.gp-tag-primary {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--bs-main);
}

.gp-card:hover .gp-tag-primary {
    background-color: rgba(59, 130, 246, 0.15);
}

.gp-card-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

    .gp-card-footer p {
        font-size: 0.75rem;
        color: #64748b;
        font-style: italic;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.gp-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* List View Styles */
.gp-list-container {
    padding: 0;
    animation: gp-fade-in 0.5s ease-in-out;
}

.gp-table-wrapper {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.gp-table-scroll {
    overflow-x: hidden;
}

    .gp-table-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .gp-table-scroll::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .gp-table-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

        .gp-table-scroll::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

.gp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .gp-table thead {
        background: linear-gradient(to right, #f8fafc, rgba(241, 245, 249, 0.5));
        border-bottom: 2px solid #e2e8f0;
    }

    .gp-table th {
        padding: 1rem 1.5rem;
        font-size: 0.75rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .gp-table th,
    .gp-table td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.gp-th-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .gp-th-content svg {
        width: 0.875rem;
        height: 0.875rem;
        color: var(--bs-main);
    }

        .gp-th-content svg.gp-icon-blue {
            color: var(--bs-main);
        }

        .gp-th-content svg.gp-icon-amber {
            color: #f59e0b;
        }

        .gp-th-content svg.gp-icon-emerald {
            color: #10b981;
        }

        .gp-th-content svg.gp-icon-primary {
            color: var(--bs-main);
        }

.gp-th-sticky {
    position: sticky;
    left: 0;
    z-index: 10;
    background: linear-gradient(to right, #f8fafc, rgba(241, 245, 249, 0.5));
    box-shadow: 2px 0 8px -2px rgba(0, 0, 0, 0.08);
}

.gp-table tbody tr {
    background-color: white;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
}

    .gp-table tbody tr:hover {
        background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
    }

.gp-row-alt {
    background-color: rgba(248, 250, 252, 0.3);
}

.gp-table tbody tr:hover.gp-row-alt {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
}

.gp-table td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: #334155;
    white-space: nowrap;
}

.gp-td-sticky {
    position: sticky;
    left: 0;
    z-index: 100;
    box-shadow: 2px 0 8px -2px rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(241, 245, 249, 0.5);
    background-color: white;
}

.gp-td-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gp-td-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.gp-table tbody tr:hover .gp-td-avatar {
    transform: scale(1.1);
}

.gp-td-avatar svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--bs-main);
}

.gp-td-info {
    display: flex;
    flex-direction: column;
}

.gp-td-guest-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
}

.gp-table tbody tr:hover .gp-td-guest-name {
    color: var(--bs-main);
}

.gp-td-guest-id {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.gp-td-truncate {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-td-notes {
    max-width: 300px;
    color: #64748b;
    white-space: normal;
}

.gp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.gp-badge-amber {
    background-color: #fffbeb;
    color: #b45309;
}

.gp-badge-emerald {
    background-color: #ecfdf5;
    color: #047857;
}

.gp-badge-gray {
    background-color: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.gp-badge-primary {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--bs-main);
}

.gp-text-empty {
    color: #cbd5e1;
}

.gp-text-italic {
    font-style: italic;
}

/* footer style */
.pagination-wrapper {
    margin-top: var(--px-12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.pagination-number {
    font-weight: 500;
    color: #1e293b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .pagination-btn:hover:not(:disabled) {
        background-color: #f1f5f9;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pagination-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: #475569;
    background: none;
}

    .pagination-page-btn:hover:not(.pagination-page-active) {
        background-color: #f1f5f9;
    }

.pagination-page-active {
    background-color: var(--bs-main);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* open detail modal */
.gp-detail-container {
    height: 100%;
    width: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .gp-detail-container {
        width: 750px;
    }
}

.gp-detail-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header Section */
.gp-detail-header {
    flex: none;
    background: linear-gradient(to bottom, white, rgba(248, 250, 252, 0.5));
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    z-index: 10;
}

@media (min-width: 768px) {
    .gp-detail-header {
        padding: 1.5rem;
    }
}

.gp-detail-header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gp-detail-header-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

/* Profile Section */
.gp-detail-profile-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gp-detail-profile-section {
        gap: 1.25rem;
    }
}

.gp-detail-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.gp-detail-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    ring: 2px solid #e2e8f0;
}

@media (min-width: 768px) {
    .gp-detail-avatar {
        width: 6rem;
        height: 6rem;
    }
}

.gp-detail-avatar svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--bs-main);
}

@media (min-width: 768px) {
    .gp-detail-avatar svg {
        width: 3rem;
        height: 3rem;
    }
}

.gp-detail-avatar-input {
    display: none;
}

.gp-detail-profile-info {
    flex: 1;
    min-width: 0;
}

.gp-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gp-detail-breadcrumb-text {
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gp-detail-breadcrumb-icon {
    height: 0.75rem;
    width: 0.75rem;
    color: #cbd5e1;
}

.gp-detail-breadcrumb-id {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--bs-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.gp-detail-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .gp-detail-profile-name {
        font-size: 1.5rem;
    }
}

.gp-detail-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gp-detail-joined-badge {
    font-size: 0.625rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .gp-detail-joined-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Action Buttons */
.gp-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .gp-detail-actions {
        align-self: flex-start;
    }
}

.gp-detail-btn-edit {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 1rem;
    background: var(--bs-main);
    color: white;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .gp-detail-btn-edit {
        flex: none;
    }
}

.gp-detail-btn-edit:hover {
    background: var(--bs-main-400);
}

.gp-detail-btn-edit svg {
    height: 1rem;
    width: 1rem;
}

.gp-detail-btn-close {
    padding: 0.625rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    color: #475569;
    cursor: pointer;
}

    .gp-detail-btn-close:hover {
        background: #f1f5f9;
    }

    .gp-detail-btn-close svg {
        height: 1.25rem;
        width: 1.25rem;
    }

/* Tabs */
.gp-detail-tabs {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .gp-detail-tabs {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.gp-detail-tabs::-webkit-scrollbar {
    display: none;
}

.gp-detail-tab {
    flex: none;
    padding: 0.625rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
}

    .gp-detail-tab:hover {
        background: rgb(241 245 249 / 1);
    }

.gp-detail-tab-active {
    background: var(--bs-main);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-main);
}

.gp-detail-tab-active:hover {
    background: var(--bs-main-400);
}

.gp-detail-tab-shortcut {
    margin-left: 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
    opacity: 0.5;
    display: none;
}

@media (min-width: 768px) {
    .gp-detail-tab-shortcut {
        display: inline;
    }
}

.gp-detail-tab-active .gp-detail-tab-shortcut {
    opacity: 0.8;
}

/* Content Section */
.gp-detail-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.gp-detail-section {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.gp-detail-content svg {
    width: var(--px-16);
    height: var(--px-16);
}

@media (min-width: 768px) {
    .gp-detail-section {
        padding: 1rem;
    }
}

/* Card */
.gp-detail-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .gp-detail-card {
        padding: 1.25rem;
    }
}

.gp-detail-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

    .gp-detail-card-title svg {
        height: 1rem;
        width: 1rem;
        color: var(--bs-main);
    }

/* Grid */
.gp-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gp-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Field */
.gp-detail-field {
    grid-column: span 1;
}

.gp-detail-field span {
    font: normal normal 500 var(--s-14);
}

    .gp-detail-field .detail-field-phone {
        color: var(--bs-main);
    }

    .gp-detail-field .detail-field-mail {
        color: rgb(126 34 206 / 1);
    }

.gp-detail-field-full {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .gp-detail-field-full {
        grid-column: span 2;
    }
}

.gp-detail-label-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.gp-detail-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    gap: 8px;
    margin: 4px 0;
}

    .gp-detail-label svg {
        width: var(--px-16);
        height: var(--px-16);
    }

/* Tooltip */
.gp-detail-tooltip {
    position: relative;
    display: inline-block;
}

.gp-detail-tooltip-icon {
    height: 0.875rem;
    width: 0.875rem;
    color: #cbd5e1;
    cursor: help;
    transition: color 0.2s;
}

    .gp-detail-tooltip-icon:hover {
        color: #3b82f6;
    }

.gp-detail-tooltip-content {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #0f172a;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    z-index: 50;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gp-detail-tooltip:hover .gp-detail-tooltip-content {
    visibility: visible;
}

.gp-detail-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -0.25rem;
    border: 4px solid transparent;
    border-top-color: #0f172a;
}

/* Value Box */
.gp-detail-value-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

    .gp-detail-value-box .btn-filter {
        width: 100%;
        background: white;
        color: var(--black);
        display: flex;
        justify-content: space-between;
    }

    .gp-detail-value-box .gp-detail-select {
        width: 100%;
        padding: 0.375rem 0.5rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: #0f172a;
        background: white;
        transition: border-color 0.2s;
    }

        .gp-detail-value-box .gp-detail-select:focus-visible {
            border: 1px solid #cbd5e1;
        }

    .gp-detail-value-box .calendar-date {
        color: rgb(180 83 9 / 1);
    }

    .gp-detail-value-box svg {
        color: rgb(148 163 184 / 1);
    }

.gp-detail-icon {
    height: 1rem;
    width: 1rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

.gp-detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
}

.gp-detail-empty {
    color: #cbd5e1;
}

.gp-detail-amber {
    color: #d97706;
}

.gp-detail-blue {
    color: #1d4ed8;
}

.gp-detail-emerald {
    color: #047857;
}

.gp-detail-indigo {
    color: #4f46e5;
}

.gp-detail-primary {
    color: #3b82f6;
}

.gp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-preferences-section .gp-checkbox-item input {
    height: 16px !important;
    width: 16px !important;
    visibility: visible !important;
}
/* Preferences */
.gp-detail-preferences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gp-detail-preferences {
        flex-direction: row;
        align-items: center;
    }
}

.gp-detail-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-detail-checkbox {
    width: 1rem;
    height: 1rem;
    color: #3b82f6;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
}

.gp-detail-checkbox-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

/* icon */
.icon_svg {
    color: var(--bs-main);
}

/* Footer */
.gp-detail-footer {
    flex: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.gp-detail-footer-info {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.gp-detail-footer-id {
    font-weight: 700;
    color: #0f172a;
}

.gp-detail-footer-btn {
    padding: 0.625rem 1.5rem;
    background: #0f172a;
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
}

    .gp-detail-footer-btn:hover {
        background: #1e293b;
    }

/* ========== STATISTIC SECTION ========== */
.gp-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.gp-stat-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-stat-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.gp-stat-field {
    display: flex;
    flex-direction: column;
}

.gp-stat-field-full {
    grid-column: 1 / -1;
}

.gp-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gp-stat-value-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

    .gp-stat-value-box span {
        font-size: 0.875rem;
        font-weight: 500;
        color: #cbd5e1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.gp-stat-icon {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.gp-stat-value-blue {
    color: #1d4ed8 !important;
}

.gp-stat-value-primary {
    color: #7c3aed !important;
}

.gp-stat-value-purple {
    color: #7c3aed !important;
}

.gp-stat-value-emerald {
    color: #059669 !important;
}

.gp-stat-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.gp-stat-metric {
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gp-stat-metric-full {
    grid-column: 1 / -1;
}

.gp-stat-metric-blue {
    background: #eff6ff;
}

.gp-stat-metric-emerald {
    background: #ecfdf5;
}

.gp-stat-metric-amber {
    background: #fffbeb;
}

.gp-stat-metric-red {
    background: #fef2f2;
}

.gp-stat-metric-purple {
    background: #faf5ff;
}

.gp-stat-metric-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gp-stat-metric-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

    .gp-stat-metric-icon svg {
        width: 1.25rem;
        height: 1.25rem;
        color: white;
    }

.gp-stat-metric-icon-blue {
    background: #3b82f6;
}

.gp-stat-metric-icon-emerald {
    background: #10b981;
}

.gp-stat-metric-icon-amber {
    background: #f59e0b;
}

.gp-stat-metric-icon-red {
    background: #ef4444;
}

.gp-stat-metric-icon-purple {
    background: #a855f7;
}

.gp-stat-metric-info {
    flex: 1;
    min-width: 0;
}

.gp-stat-metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.gp-stat-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-stat-metric-value-blue {
    color: #1e3a8a;
}

.gp-stat-metric-value-emerald {
    color: #064e3b;
}

.gp-stat-metric-value-amber {
    color: #78350f;
}

.gp-stat-metric-value-red {
    color: #7f1d1d;
}

.gp-stat-metric-value-purple {
    color: #581c87;
}

.gp-stat-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* ========== FUTURE BOOKINGS SECTION ========== */
.gp-future-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gp-future-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.gp-future-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: #dbeafe;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid #bfdbfe;
}

.gp-future-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #2563eb;
}

.gp-future-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.gp-future-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.gp-future-table-info {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

    .gp-future-table-info::-webkit-scrollbar {
        height: 4px;
    }

    .gp-future-table-info::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }

    .gp-future-table-info::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

        .gp-future-table-info::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* ========== HISTORY SECTION ========== */
.gp-history-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.gp-history-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.gp-history-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: #f3e8ff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid #e9d5ff;
}

.gp-history-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #9333ea;
}

.gp-history-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.gp-history-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.gp-history-table-info {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

    .gp-history-table-info::-webkit-scrollbar {
        height: 4px;
    }

    .gp-history-table-info::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }

    .gp-history-table-info::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

        .gp-history-table-info::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* ========== DETAIL ACTIONS ========== */
.gp-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-detail-actions-view,
.gp-detail-actions-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-detail-btn-edit {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 1rem;
    background: var(--bs-main);
    color: white;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
}

    .gp-detail-btn-edit:hover {
        background: var(--bs-main-400);
    }

.gp-detail-btn-save {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 1rem;
    background: var(--bs-main);
    color: white;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
}

    .gp-detail-btn-save:hover {
        background: var(--bs-main-400);
    }

.gp-detail-btn-cancel {
    padding: 0.625rem;
    background: transparent;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .gp-detail-btn-cancel:hover {
        background: #fef2f2;
    }

.gp-detail-btn-icon {
    width: 1rem;
    height: 1rem;
}

.gp-detail-btn-icon-close {
    width: 1.25rem;
    height: 1.25rem;
}

.gp-detail-btn-icon-cancel {
    width: 1.25rem;
    height: 1.25rem;
}

/* Edit Mode Input Fields */
.gp-detail-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    background: white;
    transition: border-color 0.2s;
}

    .gp-detail-input:focus {
        outline: none;
        border-color: var(--bs-main-300);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

.gp-detail-editing .gp-detail-value-box {
    background: transparent;
    border-color: #e2e8f0;
}

.gp-detail-editing .gp-detail-card {
    position: relative;
}

    .gp-detail-editing .gp-detail-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #7c3aed, #a855f7);
        border-radius: 13px;
        z-index: -1;
        opacity: 0.1;
    }

/* helper */
.pms--guestprofile .fa-light.fa-calendar {
    display: none !important;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;

    flex: 1;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

    .btn-delete:hover {
        background-color: #fee2e2;
        color: #b91c1c;
    }

.btn-delete__icon {
    display: flex;
    align-items: center;
}

.gp-history-table {
    width: 100%;
    overflow-x: auto;
    font: normal normal 500 var(--s-14);
}

.gp-list {
    min-width: 1200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #d3d3d3;
}

.gp-row {
    display: grid;
    grid-template-columns: 100px
    90px
    110px
    110px
    80px
    120px
    120px
    110px
    110px
    70px
    1fr;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

    .gp-row:last-child {
        border-bottom: none;
    }

    .gp-row:not(.gp-header):hover {
        background-color: #f9fafb;
    }

.gp-header {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: var(--black);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #d1d5db;
}

.gp-col {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow: hidden;
}

    .gp-col:nth-child(1),
    .gp-col:nth-child(2),
    .gp-col:nth-child(5),
    .gp-col:nth-child(10) {
        justify-content: center;
    }

    .gp-col:nth-child(6),
    .gp-col:nth-child(7),
    .gp-col:nth-child(8),
    .gp-col:nth-child(9) {
        justify-content: flex-end;
        font-weight: 500;
    }

    .gp-col:nth-child(3),
    .gp-col:nth-child(4) {
        justify-content: center;
    }

.gp-row:not(.gp-header):nth-child(even) {
    background-color: #fafafa;
}

    .gp-row:not(.gp-header):nth-child(even):hover {
        background-color: #f3f4f6;
    }

/* Responsive Design */
@media (min-width: 640px) {
    .gp-header-right {
        flex-direction: row;
    }

    /* footer */
    .pagination-wrapper {
        flex-direction: row;
        gap: 0;
    }

    .pagination-info {
        text-align: left;
    }

    .gp-stat-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gp-td-guest-name {
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 768px) {
    .gp-header-wrapper {
        padding: 1.5rem;
    }

    .gp-title-section h1 {
        font-size: 1.875rem;
    }

    .gp-stat-card {
        padding: 1.25rem;
    }

    .gp-stat-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gp-stat-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .gp-future-card {
        padding: 2rem;
    }

    .gp-history-card {
        padding: 2rem;
    }

    .gp-detail-btn-save {
        flex: none;
    }

    .gp-detail-btn-edit {
        flex: none;
    }

    .gp-detail-actions {
        align-self: flex-start;
    }
}

@media (min-width: 1024px) {
    .gp-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .gp-header-right {
        width: auto;
    }
}

@media (max-width: 1400px) {
    .gp-history-table {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }

    .gp-table-scroll {
        -webkit-overflow-scrolling: touch;
    }
}