/* ShadCN-Style CSS for GroupT Bookings Plugin */

/* === BASE RESET === */
.groupt-wrapper {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    line-height: 1.5;
    max-width: 56rem;
    margin: 0 auto;
}

.groupt-wrapper *,
.groupt-wrapper *::before,
.groupt-wrapper *::after {
    box-sizing: border-box;
}

/* === TABS === */
.groupt-tabs {
    margin-bottom: 1.5rem;
}

.groupt-tabs-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #f1f5f9;
    /* slate-100 */
    padding: 0.375rem;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .groupt-tabs-list {
        width: auto;
    }
}

.groupt-tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.125rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    /* 15px */
    font-weight: 500;
    border: none;
    background: transparent;
    color: #64748b;
    /* slate-500 */
    cursor: pointer;
    transition: all 0.15s;
}

.groupt-tab-trigger:hover {
    color: #0f172a;
    /* slate-900 */
}

.groupt-tab-trigger.active {
    background-color: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* === SCHEDULE CARDS === */
.groupt-schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.groupt-day-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    /* slate-200 */
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.groupt-day-header {
    background-color: #f8fafc;
    /* slate-50 */
    border-bottom: 1px solid #f1f5f9;
    /* slate-100 */
    padding: 1.5rem;
}

.groupt-day-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0;
}

.groupt-slots-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.groupt-slot {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

@media (max-width: 639px) {
    .groupt-slot {
        padding: 0.75rem;
    }
}

.groupt-slot:last-child {
    border-bottom: none;
}

.groupt-slot:hover {
    background-color: #f8fafc;
}

@media (min-width: 640px) {
    .groupt-slot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.groupt-slot-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 639px) {
    .groupt-slot-info {
        gap: 0.75rem;
    }
}

@media (min-width: 640px) {
    .groupt-slot-info {
        margin-bottom: 0;
    }
}

.groupt-slot-time {
    font-family: ui-monospace, monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
    width: 4rem;
    flex-shrink: 0;
}

.groupt-slot-details {
    display: flex;
    flex-direction: column;
}

.groupt-slot-name {
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.groupt-slot-availability {
    font-size: 0.875rem;
    color: #64748b;
}

.groupt-slot-availability .available {
    color: #16a34a;
    /* green-600 */
}

.groupt-slot-availability .full {
    color: #dc2626;
    /* red-600 */
    font-weight: 500;
}

.groupt-slot-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* === BUTTONS === */
.groupt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.25rem;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    text-decoration: none;
}

.groupt-book-btn,
.groupt-btn-primary {
    background-color: #0f172a !important;
    /* slate-900 */
    color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.groupt-book-btn:hover,
.groupt-btn-primary:hover {
    background-color: rgb(15 23 42 / 0.9) !important;
}

.groupt-cancel-btn,
.groupt-btn-danger {
    background-color: #ffffff !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
    /* red-200 */
}

.groupt-cancel-btn:hover,
.groupt-btn-danger:hover {
    background-color: #fef2f2 !important;
    /* red-50 */
    color: #b91c1c !important;
}

.groupt-btn-secondary {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

.groupt-btn-secondary:hover {
    background-color: #f8fafc !important;
}

.groupt-btn-disabled,
.groupt-btn:disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.groupt-btn-shadcn {
    background-color: #229ED9 !important;
    /* Telegram Blue */
    color: white !important;
    height: 2.5rem;
    padding: 0 1rem;
}

.groupt-btn-shadcn:hover {
    background-color: #1b82b5 !important;
}

/* === MODAL === */
.groupt-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgb(0 0 0 / 0.8) !important;
    backdrop-filter: blur(4px);
    display: none;
}

.groupt-modal.open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.groupt-modal-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    padding: 1.5rem;
    width: 90%;
    max-width: 32rem;
    position: relative;
}

.groupt-modal-header {
    margin-bottom: 1rem;
}

.groupt-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #0f172a !important;
    margin: 0 0 0.5rem 0;
}

.groupt-modal-description {
    font-size: 0.875rem;
    color: #64748b !important;
}

.groupt-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.groupt-modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .groupt-modal-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.groupt-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b !important;
    line-height: 1;
    padding: 0.25rem;
}

.groupt-close:hover {
    color: #0f172a !important;
}

/* === FORM === */
.groupt-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.groupt-form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a !important;
}

.groupt-form-input {
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a !important;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.groupt-form-input:focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px rgb(15 23 42 / 0.1) !important;
}

.groupt-form-input::placeholder {
    color: #94a3b8 !important;
}

.groupt-msg {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #0f172a !important;
}

/* === NOTICES === */
.groupt-notice {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.groupt-notice.info {
    background-color: #eff6ff;
    /* blue-50 */
    border: 1px solid #bfdbfe;
    /* blue-200 */
    color: #1e3a8a;
    /* blue-900 */
}

.groupt-notice.success {
    background-color: #f0fdf4;
    /* green-50 */
    border: 1px solid #bbf7d0;
    /* green-200 */
    color: #14532d;
    /* green-900 */
}

.groupt-notice.warning {
    background-color: #fef3c7;
    /* amber-50 */
    border: 1px solid #fde68a;
    /* amber-200 */
    color: #78350f;
    /* amber-900 */
}

.groupt-notice.error {
    background-color: #fef2f2;
    /* red-50 */
    border: 1px solid #fecaca;
    /* red-200 */
    color: #7f1d1d;
    /* red-900 */
}

/* === EMPTY STATE === */
.groupt-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px dashed #e2e8f0;
}

/* === UTILITIES === */
.groupt-wrapper .flex {
    display: flex;
}

.groupt-wrapper .items-start {
    align-items: flex-start;
}

.groupt-wrapper .items-center {
    align-items: center;
}

.groupt-wrapper .gap-4 {
    gap: 1rem;
}

.groupt-wrapper .mb-3 {
    margin-bottom: 0.75rem;
}

.groupt-wrapper .mb-6 {
    margin-bottom: 1.5rem;
}

.groupt-wrapper .text-sm {
    font-size: 0.875rem;
}

.groupt-wrapper .text-2xl {
    font-size: 1.5rem;
}

.groupt-wrapper .flex-1 {
    flex: 1;
}

.groupt-wrapper .w-full {
    width: 100%;
}

.groupt-wrapper .max-w-4xl {
    max-width: 56rem;
}

.groupt-wrapper .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.groupt-wrapper .rounded-lg {
    border-radius: 0.5rem;
}

.groupt-wrapper .border {
    border-width: 1px;
    border-style: solid;
}

.groupt-wrapper .border-blue-200 {
    border-color: #bfdbfe;
}

.groupt-wrapper .border-green-200 {
    border-color: #bbf7d0;
}

.groupt-wrapper .border-red-200 {
    border-color: #fecaca;
}

.groupt-wrapper .border-slate-200 {
    border-color: #e2e8f0;
}

.groupt-wrapper .bg-blue-50 {
    background-color: #eff6ff;
}

.groupt-wrapper .bg-green-50 {
    background-color: #f0fdf4;
}

.groupt-wrapper .bg-red-50 {
    background-color: #fef2f2;
}

.groupt-wrapper .bg-slate-50 {
    background-color: #f8fafc;
}

.groupt-wrapper .text-blue-700 {
    color: #1d4ed8;
}

.groupt-wrapper .text-blue-900 {
    color: #1e3a8a;
}

.groupt-wrapper .text-green-900 {
    color: #14532d;
}

.groupt-wrapper .text-red-900 {
    color: #7f1d1d;
}

.groupt-wrapper .text-slate-700 {
    color: #334155;
}

.groupt-wrapper .p-4 {
    padding: 1rem;
}