/* Calendar Integration Styles */

.connection-status {
    margin-bottom: 40px;
}

.calendar-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.provider-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.provider-card:hover {
    border-color: #4facfe;
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.1);
}

.provider-card.connected {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.provider-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.provider-card.connected .provider-icon {
    background: #d1fae5;
}

.provider-details h3 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.provider-status {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.provider-card.connected .provider-status {
    color: #10b981;
    font-weight: 500;
}

.connect-btn {
    background: #4facfe;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.connect-btn:hover {
    background: #2563eb;
}

.connect-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.provider-card.connected .connect-btn {
    background: #ef4444;
}

.provider-card.connected .connect-btn:hover {
    background: #dc2626;
}

/* Availability Sharing Styles */
.availability-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.availability-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-range input {
    flex: 1;
}

.time-range span {
    color: #718096;
    font-weight: 500;
}

.create-share-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.create-share-btn:hover {
    background: #059669;
}

/* Existing Shares Styles */
.existing-shares {
    margin-bottom: 40px;
}

.shares-list {
    display: grid;
    gap: 16px;
}

.share-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-info h4 {
    margin: 0 0 4px 0;
    color: #2d3748;
}

.share-info p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.share-actions {
    display: flex;
    gap: 12px;
}

.copy-link-btn,
.revoke-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.copy-link-btn {
    background: #4facfe;
    color: white;
}

.copy-link-btn:hover {
    background: #2563eb;
}

.revoke-btn {
    background: #ef4444;
    color: white;
}

.revoke-btn:hover {
    background: #dc2626;
}

/* Meeting Proposals Styles */
.meeting-proposals {
    margin-bottom: 40px;
}

.propose-meeting-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.propose-meeting-btn:hover {
    transform: translateY(-2px);
}

.meeting-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.proposed-times {
    margin-bottom: 20px;
}

.time-slot {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.time-slot input {
    flex: 1;
}

.time-slot button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.add-time-slot-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.send-proposal-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.cancel-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Getting Started Styles */
.getting-started {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #718096;
    line-height: 1.5;
}

.feature-benefits {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
}

.feature-benefits h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.feature-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.feature-benefits li {
    padding: 8px 0;
    font-size: 1.1rem;
}

/* Loading and Status Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.status-message.success {
    background: #10b981;
}

.status-message.error {
    background: #ef4444;
}

.status-message.info {
    background: #4facfe;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-providers {
        grid-template-columns: 1fr;
    }
    
    .provider-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .time-range {
        flex-direction: column;
        gap: 8px;
    }
    
    .time-slot {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .share-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .feature-benefits ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .availability-section,
    .meeting-form,
    .feature-benefits {
        padding: 20px;
    }
    
    .provider-card {
        padding: 16px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .provider-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .provider-card.connected {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    }
    
    .availability-section,
    .meeting-form {
        background: #1f2937;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }
    
    .share-item {
        background: #1f2937;
        border-color: #374151;
    }
}