/* Connecteam Frontend Styles */

/* Registration Form */
.connecteam-registration-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.connecteam-registration-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input.error {
    border-color: #f44336;
}

.field-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.password-strength.weak .strength-bar {
    width: 33%;
    background: #f44336;
}

.password-strength.medium .strength-bar {
    width: 66%;
    background: #ff9800;
}

.password-strength.strong .strength-bar {
    width: 100%;
    background: #4CAF50;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.btn-submit,
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover,
.btn-primary:hover {
    background: #45a049;
}

.btn-submit:disabled,
.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.message {
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Service Selector */
.connecteam-service-selector {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.connecteam-service-selector h2 {
    margin-bottom: 25px;
    color: #333;
}

.service-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.service-details {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.service-details h3 {
    margin-top: 0;
    color: #333;
}

/* Availability Calendar */
.connecteam-availability-calendar {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.connecteam-availability-calendar h2 {
    margin-bottom: 25px;
    color: #333;
}

.search-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #2271b1;
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Provider Cards */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.provider-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.provider-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.provider-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.provider-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.provider-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.provider-header h3 {
    margin: 10px 0 0 0;
    color: #333;
    font-size: 18px;
}

.provider-body {
    margin-bottom: 15px;
}

.provider-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.provider-info {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}

.availability-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.availability-info h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
}

.time-slots {
    list-style: none;
    padding: 0;
    margin: 0;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 8px 0;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

.time-slot.busy {
    border-left-color: #f44336;
    background: #fff5f5;
}

.time-slot .time {
    font-weight: 600;
    color: #333;
}

.btn-book-slot {
    padding: 6px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-book-slot:hover {
    background: #45a049;
}

.btn-book-anytime {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-book-anytime:hover {
    background: #0b7dda;
}

.status.busy {
    color: #f44336;
    font-size: 13px;
    font-weight: 600;
}

.no-schedule {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.no-providers-found {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-providers-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-providers-found h3 {
    color: #333;
    margin-bottom: 15px;
}

.no-providers-found ul {
    text-align: left;
    display: inline-block;
    margin-top: 15px;
    line-height: 1.8;
}

.no-search-yet {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

#booking-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#booking-details p {
    margin: 8px 0;
    color: #555;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

.btn-secondary {
    background: #666;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #555;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .connecteam-registration-form,
    .connecteam-service-selector,
    .connecteam-availability-calendar {
        padding: 20px;
        margin: 15px;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% 20px;
        padding: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}