/* Group Invite Link Styles */
.benih-group-invite-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.benih-group-invite-section h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.invite-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

.invite-link-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-family: monospace;
    font-size: 14px;
}

.invite-link-actions {
    display: flex;
    gap: 10px;
}

.btn-copy-invite,
.btn-generate-invite,
.btn-toggle-invite {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-copy-invite {
    background: #4CAF50;
    color: white;
}

.btn-copy-invite:hover {
    background: #45a049;
}

.btn-copy-invite.copied {
    background: #2196F3;
}

.btn-generate-invite {
    background: #2196F3;
    color: white;
}

.btn-generate-invite:hover {
    background: #0b7dda;
}

.btn-toggle-invite {
    background: #ff9800;
    color: white;
}

.btn-toggle-invite:hover {
    background: #e68900;
}

.btn-toggle-invite.disabled {
    background: #f44336;
}

.btn-toggle-invite.disabled:hover {
    background: #da190b;
}

.invite-info {
    margin-top: 10px;
    padding: 10px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.invite-info.warning {
    background: #fff3cd;
    border-left-color: #ff9800;
}

.invite-info.error {
    background: #f8d7da;
    border-left-color: #f44336;
}

.invite-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.invite-expiry-selector {
    margin: 15px 0;
}

.invite-expiry-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.invite-expiry-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Loading state */
.invite-link-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.invite-link-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .invite-link-container {
        flex-direction: column;
    }
    
    .invite-link-actions {
        width: 100%;
    }
    
    .btn-copy-invite,
    .btn-generate-invite,
    .btn-toggle-invite {
        flex: 1;
    }
}

/* Group card invite button */
.group-card-invite-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.group-card-invite-btn:hover {
    background: #0b7dda;
    text-decoration: none;
    color: white;
}

.group-card-invite-btn i {
    margin-right: 5px;
}

/* Invite success/error messages */
.invite-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.invite-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.invite-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Join page styling */
.benih-join-group-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.benih-join-group-page h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.group-join-info {
    text-align: center;
    margin: 30px 0;
}

.group-join-info .group-name {
    font-size: 24px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 10px;
}

.group-join-info .group-description {
    color: #666;
    line-height: 1.6;
}

.group-join-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.group-join-stat {
    text-align: center;
}

.group-join-stat .number {
    font-size: 28px;
    font-weight: 700;
    color: #2196F3;
}

.group-join-stat .label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.btn-join-group {
    display: block;
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-join-group:hover {
    background: #45a049;
}

.btn-join-group:disabled {
    background: #ccc;
    cursor: not-allowed;
}
