/* MyPayKit Admin CSS */

/* Lite Notification Bar */
.mypk-lite-notification {
    background-color: #10b981; /* Vibrant green */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mypk-lite-notification-text {
    color: #ffffff;
    font-size: 0.9375rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mypk-lite-notification-text .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    margin-top: 1px;
}

/* Header Styles */
.mypk-header {
    margin-left: -1.25rem;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    color: #27272a;
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e4e4e7;
}

.mypk-header-icon {
    height: 1.75rem;
    width: 1.75rem;
    color: #18181b;
}

.mypk-header-title {
    margin-left: 0.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
}

.mypk-header-brand {
    font-weight: 500;
    color: #27272a;
}

.mypk-brand-my {
    font-weight: 700;
    color: #27272a;
}

.mypk-header-separator {
    margin-left: 0.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #a1a1aa;
}

.mypk-header-content {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    flex: 1;
}

.mypk-header-page {
    font-size: 1.5rem;
    line-height: 2rem;
    color: #27272a;
    margin-right: auto;
}

/* Square Status Indicator */
.mypk-square-status {
    margin-right: 1rem;
}

.mypk-status-indicator {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.75;
}

.mypk-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.mypk-dot-connected {
    background-color: #10b981; /* green-500 */
}

.mypk-dot-disconnected {
    background-color: #ef4444; /* red-500 */
}

.mypk-dot-loading {
    background-color: #9ca3af; /* gray-400 */
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mypk-status-connected .mypk-status-text {
    color: #065f46; /* green-800 */
}

.mypk-status-disconnected .mypk-status-text {
    color: #991b1b; /* red-800 */
}

.mypk-status-loading .mypk-status-text {
    color: #6b7280; /* gray-500 */
}

/* Tooltip cursor for disconnected status */
.mypk-status-disconnected {
    cursor: help;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Square Status - maintain right alignment */
.mypk-square-status {
    margin-left: auto;
    margin-right: 1rem;
}

.button-small {
    font-size: 16px;
    font-weight: 500;
    height: 38px;
    line-height: 36px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Forms Page Styling */
form[method="post"] {
    margin-top: 15px;
}

/* WordPress button styles with custom colors */
.wp-core-ui .button-primary {
    background-color: #2563eb !important; /* oklch(0.623 0.214 259.815) */
    border-color: #2563eb !important;
    color: white !important;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* Onboarding Connection Screen */
.mypk-onboarding-container {
    margin: 40px auto;
    max-width: 800px;
}

.mypk-onboarding-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
}

.mypk-onboarding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mypk-onboarding-logo img {
    height: 40px;
    margin-right: 5px;
}

.mypk-plus-sign {
    margin: 0 20px;
    font-size: 32px;
    color: #606060;
}

.mypk-logo-with-text {
    display: flex;
    align-items: center;
}

.mypk-logo-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-right: 12px;
}

.mypk-logo-icon svg {
    width: 100%;
    height: 100%;
}

.mypk-logo-text {
    font-size: 31px;
    font-weight: 600;
    line-height: 1;
}

.mypk-my {
    font-weight: 700;
    color: #333333;
}

.mypk-pay {
    font-weight: 400;
    color: #333333;
}

.mypk-kit {
    color: #333333;
    font-weight: 400;
}

.mypk-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.mypk-description {
    margin-bottom: 30px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mypk-features {
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mypk-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mypk-feature-icon {
    color: #2563eb; /* oklch(0.623 0.214 259.815) */
    font-weight: bold;
    margin-right: 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mypk-feature-text {
    color: #444;
}

.mypk-highlight-feature {
    margin-top: 20px;
    margin-bottom: 5px;
    background: rgba(37, 99, 235, 0.05);
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 4px solid #2563eb; /* oklch(0.623 0.214 259.815) */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mypk-highlight-feature .mypk-feature-item {
    margin-bottom: 0;
}

.mypk-highlight-feature .mypk-feature-icon {
    background: rgba(37, 99, 235, 0.2);
}

.mypk-highlight-feature .mypk-feature-text {
    font-weight: 500;
    color: #333;
}

.mypk-connection-button {
    margin: 30px 0;
}

.mypk-connect-button {
    display: inline-flex;
    align-items: center;
    background-color: #2563eb; /* oklch(0.623 0.214 259.815) */
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mypk-connect-button:hover {
    background-color: #1d4ed8; /* Slightly darker blue for hover */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mypk-connect-button svg {
    margin-right: 8px;
    vertical-align: middle;
}

.mypk-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.mypk-security-note .dashicons {
    color: #888;
    margin-right: 5px;
}

.mypk-security-note p {
    margin: 0;
    max-width: 550px;
    line-height: 1.5;
}

.mypk-privacy-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
}

/* General styles */
.mypk-p-4 { padding: 1rem; }
.mypk-p-1\.5 { padding: 0.375rem; }
.mypk-p-2 { padding: 0.5rem; }
.mypk-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mypk-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mypk-px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.mypk-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.mypk-py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.mypk-ml-2 { margin-left: 0.5rem; }
.mypk-ml-5 { margin-left: 1.25rem; }
.mypk-ml-negative5 { margin-left: -1.25rem; }
.mypk-my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mypk-mb-2 { margin-bottom: 0.5rem; }
.mypk-mb-4 { margin-bottom: 1rem; }
.mypk-m-0 { margin: 0; }

/* Typography */
.mypk-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.mypk-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.mypk-text-xs { font-size: 0.75rem; line-height: 1rem; }
.mypk-font-bold { font-weight: 700; }
.mypk-font-medium { font-weight: 500; }
.mypk-font-mono { font-family: monospace; }
.mypk-font-serif { font-family: sans-serif; }
.mypk-font-sans { font-family: sans-serif; }
.mypk-text-center { text-align: center; }

/* Colors */
.mypk-text-white { color: #ffffff; }
.mypk-text-zinc-800 { color: #27272a; }
.mypk-text-zinc-600 { color: #52525b; }
.mypk-text-zinc-400 { color: #a1a1aa; }
.mypk-text-zinc-900 { color: #18181b; }
.mypk-text-zinc-300 { color: #d4d4d8; }
.mypk-bg-white { background-color: #ffffff; }
.mypk-bg-green-600 { background-color: #16a34a; }
.mypk-bg-blue-500 { background-color: #3b82f6; }
.mypk-bg-green-500 { background-color: #22c55e; }
.mypk-border-zinc-200 { border-color: #e4e4e7; }

/* Layout */
.mypk-flex { display: flex; }
.mypk-flex-col { flex-direction: column; }
.mypk-items-center { align-items: center; }
.mypk-justify-center { justify-content: center; }
.mypk-gap-2 { gap: 0.5rem; }
.mypk-h-96 { height: 24rem; }
.mypk-h-7 { height: 1.75rem; }
.mypk-w-7 { width: 1.75rem; }
.mypk-w-full { width: 100%; }
.mypk-w-32 { width: 8rem; }

/* Effects */
.mypk-shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.mypk-rounded-md { border-radius: 0.375rem; }
.mypk-rounded { border-radius: 0.25rem; }
.mypk-border-b { border-bottom-width: 1px; }

/* Table styling */
.wp-list-table.mypk-table {
    table-layout: fixed;
}
.wp-list-table.mypk-table .column-cb {
    width: 32px;
}
.wp-list-table.mypk-table .column-name {
    width: 25%;
}
.wp-list-table.mypk-table .column-shortcode {
    width: 50%;
}
.wp-list-table.mypk-table .column-created_at {
    width: 150px;
}
.wp-list-table.mypk-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wp-list-table.mypk-table .column-shortcode {
    white-space: normal;
}

/* Shortcode Field Styling */
.mypk-shortcode-field {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.mypk-code-input {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 12px;
    width: 90%;
    margin-right: 8px;
}

.mypk-code-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.mypk-copy-button {
    background-color: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    color: #3c434a;
    transition: all 0.2s ease;
}

.mypk-copy-button:hover {
    background-color: #e0e0e0;
    border-color: #8c8f94;
}

.mypk-copy-button.copied {
    background-color: #2563eb; /* oklch(0.623 0.214 259.815) */
    border-color: #2563eb;
    color: white;
}

/* Date Display in Table */
.mypk-date-display {
    color: #50575e;
    font-size: 13px;
}

/* Empty State */
.mypk-empty-state {
    padding: 2.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.1), 0 2px 10px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mypk-empty-state-icon {
    margin-bottom: 1.5rem;
    background-color: #f0f9ff;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.05);
}

.mypk-empty-state-title {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.mypk-empty-state-message {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 550px;
}

.mypk-empty-state-benefits {
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mypk-empty-state-benefits li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 1rem;
}

.mypk-empty-state-benefits svg {
    color: #2563eb;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
}

.mypk-empty-state-action {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mypk-countdown-text {
    margin-top: 15px;
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

#countdown {
    font-weight: 600;
    color: #2563eb;
}
