/**
 * Smart Share Frontend Styles - Redesigned
 */

/* Container */
.smart-share-wrapper {
    max-width: 100%;
}

/* Cards */
.smart-share-wrapper .card {
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Template Preview */
#template-preview-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3f4254;
}

/* Table Styles */
.guests-table {
    width: 100%;
}

.guests-table thead th {
    background: #f5f8fa;
    color: #7e8299;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid #e4e6ef;
}

.guests-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f8fa;
    vertical-align: middle;
}

.guests-table tbody tr:hover {
    background: #f9fafb;
}

/* Guest Info */
.guest-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #181c32;
    margin-bottom: 2px;
}

.guest-phone {
    font-size: 0.8125rem;
    color: #7e8299;
}

/* Status Badges */
.guest-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.guest-status-pending {
    background: #fff4de;
    color: #f1a22b;
}

.guest-status-sent {
    background: #e8fff3;
    color: #50cd89;
}

.guest-status-failed {
    background: #ffe2e5;
    color: #f1416c;
}

/* Action Buttons */
.guest-actions {
    display: flex;
    gap: 4px;
}

.guest-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f5f8fa;
    border-radius: 6px;
    color: #7e8299;
    cursor: pointer;
    transition: all 0.2s;
}

.guest-action-btn:hover {
    background: #e4e6ef;
    color: #181c32;
}

.guest-action-btn.edit:hover {
    background: #e1f0ff;
    color: #3699ff;
}

.guest-action-btn.delete:hover {
    background: #ffe2e5;
    color: #f1416c;
}

.guest-action-btn.share:hover {
    background: #e8fff3;
    color: #50cd89;
}

/* Pagination */
.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #e4e6ef;
    background: #fff;
    border-radius: 6px;
    color: #7e8299;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f8fa;
    border-color: #d1d5db;
}

.pagination-btn.active {
    background: #3699ff;
    border-color: #3699ff;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e4e6ef;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #181c32;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.9375rem;
    color: #7e8299;
}

/* Loading */
.table-loading {
    padding: 60px 20px;
    text-align: center;
}

/* Checkbox */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3699ff;
    border-color: #3699ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .smart-share-wrapper .card-body {
        padding: 16px !important;
    }
    
    .guests-table thead th,
    .guests-table tbody td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
    
    .guest-name {
        font-size: 0.875rem;
    }
    
    .guest-phone {
        font-size: 0.75rem;
    }
    
    .guest-action-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 576px) {
    .pagination-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
