/* Calendar styles */

/* Profile View Styles */
.profile-form {
    max-width: 100%;
    padding: 20px;
}

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

.profile-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.profile-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.profile-form .form-control[readonly] {
    background-color: #f5f5f5;
    color: #666;
}

.status-display, .info-display {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.status-active {
    color: #28a745;
    font-weight: 500;
}

.status-inactive {
    color: #dc3545;
    font-weight: 500;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #d2d2d7;
    background-color: white;
}

.date-navigation h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background-color: #007AFF;
    color: white;
    border-color: #007AFF;
}

.view-btn:hover:not(.active) {
    background-color: #f5f5f7;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #d2d2d7;
    border: 1px solid #d2d2d7;
    border-top: none;
    flex: 1;
    overflow: auto;
}

.calendar-day-header {
    background-color: white;
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 14px;
}

.calendar-day {
    min-height: 120px;
    background-color: white;
    padding: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: #f5f5f7;
    cursor: pointer;
}

.calendar-day.other-month {
    background-color: #f5f5f7;
    color: #86868b;
}

.calendar-day.today {
    background-color: #e6f0ff;
    border: 1px solid #007AFF;
}

.calendar-day.selected {
    background-color: #cce5ff;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.calendar-event {
    background-color: #007AFF;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Upcoming events */
.upcoming-list {
    list-style: none;
}

.upcoming-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-time {
    min-width: 60px;
    font-size: 14px;
    font-weight: 500;
    color: #007AFF;
}

.upcoming-content {
    flex: 1;
}

.upcoming-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.upcoming-location {
    font-size: 12px;
    color: #86868b;
}

/* Calendar list */
.calendar-list {
    list-style: none;
}

.calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-item:hover {
    background-color: #f5f5f7;
}

.calendar-item.active {
    background-color: #e6f0ff;
}

.calendar-color {
    width: 16px;
    height: 16px;
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 8px;
    }
    
    .calendar-day-number {
        font-size: 12px;
    }
    
    .calendar-event {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* Week View */
.calendar-grid.week-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow: hidden;
    background-color: white; /* Ensure background is white */
}

.week-view-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f5f5f7;
    border-bottom: 1px solid #d2d2d7;
}

.week-view-header .day-header {
    padding: 8px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid #d2d2d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.week-view-header .day-header:last-child {
    border-right: none;
}

.week-view-header .day-header span {
    font-size: 14px;
    color: #86868b;
}

.week-view-header .day-header .day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.week-view-header .day-header.today .day-number {
    background-color: #007AFF;
    color: white;
}

.week-view-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    flex-grow: 1;
    position: relative; /* For current time indicator */
}

.day-column {
    border-right: 1px solid #d2d2d7;
    min-height: 500px; /* Give it some height */
    position: relative;
    overflow-y: auto; /* Make day columns scrollable */
}

.day-column:last-child {
    border-right: none;
}

.day-column .events-container {
    padding: 8px;
    position: relative; /* For absolute positioning of events if needed */
    min-height: 100%; /* Ensure container takes full height */
}

/* Event styling within week view */
.week-view .calendar-event {
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
    cursor: pointer;
}

/* Day View */
.calendar-grid.day-view {
    display: flex;
    gap: 0;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow-y: auto;
    position: relative;
    background-color: white; /* Ensure background is white */
    padding-top: 50px; /* Make room for back button */
}

.day-view-timeline {
    width: 60px;
    border-right: 1px solid #d2d2d7;
    position: relative;
}

.hour-cell {
    height: 60px; /* 1 hour height */
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    padding-right: 8px;
    font-size: 12px;
    color: #86868b;
    line-height: 60px; /* Vertically center text */
}

.hour-cell:last-child {
    border-bottom: none;
}

.day-view-events {
    flex-grow: 1;
    position: relative;
    min-height: 1440px; /* Ensure height matches timeline for accurate positioning */
}

.day-event {
    position: absolute;
    left: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    overflow: hidden;
    color: white;
    z-index: 1;
    box-sizing: border-box; /* Include padding in height calculation */
    /* Debugging background - remove in production */
    background-color: #007AFF;
    border: 1px solid #0056b3;
}

/* Back button for day view */
.back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
}

.back-btn:hover {
    background-color: #0056b3;
}

/* Current time indicator for Day View */
.current-time-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #FF3B30; /* Red color */
    z-index: 2;
}

.current-time-indicator::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    background-color: #FF3B30;
    border-radius: 50%;
}
/* Availability view styles */
.availability-view {
    padding: 24px; /* Similar to main-content padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.availability-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.availability-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.availability-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.availability-details p {
    font-size: 14px;
    color: #555;
}

.availability-actions {
    display: flex;
    gap: 8px;
}

.btn-sm { /* Small button style, if not already defined */
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.status.active {
    background-color: #e6f0ff;
    color: #007AFF;
}

.status.inactive {
    background-color: #f0f0f0;
    color: #86868b;
}

.no-availability, .error-message {
    text-align: center;
    padding: 20px;
    color: #86868b;
    font-size: 16px;
}

.error-message {
    color: #FF3B30;
}
/* Availability view styles */
.availability-day-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-bottom: 16px; /* Add some space between day sections */
}

.availability-day-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.no-availability-for-day {
    font-size: 14px;
    color: #86868b;
    padding: 8px 0;
    text-align: center;
}
/* Appointments view styles */
.appointments-view {
    padding: 24px; /* Consistent with other views */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.appointments-header {
    margin-bottom: 24px;
}

.appointments-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointments-list > div { /* Styles for #today-appointments and #tomorrow-appointments */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.appointments-list > div h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.appointment-item {
    display: flex;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px; /* Add margin between items within the list */
}

.appointment-item:last-child {
    margin-bottom: 0; /* No margin for the last item */
}

.appointment-time {
    width: 80px;
    font-weight: 600;
    color: #007AFF;
    flex-shrink: 0; /* Prevent shrinking */
}

.appointment-details {
    flex: 1;
    padding-left: 16px; /* Add some space between time and details */
    border-left: 1px solid #f0f0f0; /* Visual separator */
}

.appointment-details h3 {
    margin-bottom: 4px;
    font-size: 18px;
    color: #1d1d1f;
}

.appointment-details p {
    color: #86868b;
    margin-bottom: 8px;
    font-size: 14px;
}

.appointment-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #86868b;
}

.meta-item {
    font-size: 14px;
    color: #86868b;
}

.no-appointments, .error-message {
    text-align: center;
    padding: 20px;
    color: #86868b;
    font-size: 16px;
}

.error-message {
    color: #FF3B30;
}

.cancelled-event {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Integrations Styles */
.integrations-status {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.status-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-item.warning {
    color: #f39c12;
}

.last-sync {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.integration-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.integration-card.connected {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.integration-card.expired {
    border-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.integration-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.integration-card h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.integration-card p {
    color: #6c757d;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.integration-status {
    margin: 1rem 0;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.connected {
    background: #d4edda;
    color: #155724;
}

.status-badge.disconnected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.expired {
    background: #fff3cd;
    color: #856404;
}

.integration-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.integration-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Apple Connect Modal Styles */
#apple-connect-modal .modal-content {
    max-width: 400px;
}

#apple-connect-modal .form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Loading and Error States */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* Type tags for appointments */
.type-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-appointment {
    background: #e3f2fd;
    color: #1976d2;
}

.type-event {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Appointment actions */
.appointment-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.appointment-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Design for Integrations */
@media (max-width: 768px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .status-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .integration-actions {
        flex-direction: column;
    }
    
    .integration-actions .btn {
        width: 100%;
    }
}

/* Settings Styles */
.settings-content {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.setting-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.setting-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setting-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.setting-control label {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.setting-description {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-input:checked + .toggle-label {
    background-color: #007AFF;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(26px);
}

.toggle-input:focus + .toggle-label {
    box-shadow: 0 0 1px #007AFF;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.settings-actions .btn {
    min-width: 120px;
}

/* Theme Support */
.theme-dark .settings-section {
    background: #2c2c2c;
    color: #fff;
}

.theme-dark .settings-section h3 {
    color: #fff;
    border-bottom-color: #444;
}

.theme-dark .setting-control label {
    color: #fff;
}

.theme-dark .setting-description {
    color: #ccc;
}

.theme-dark .setting-item {
    border-bottom-color: #444;
}

.theme-dark .settings-actions {
    border-top-color: #444;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-content {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .settings-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .setting-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
}

/* Team Sharing Styles */
.team-share-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
}

.tab-btn:hover:not(.active) {
    color: #333;
    background-color: #f5f5f7;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

.shares-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.share-info {
    flex: 1;
}

.share-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.share-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.share-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.share-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.permission-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.permission-read {
    background: #e3f2fd;
    color: #1976d2;
}

.permission-write {
    background: #e8f5e8;
    color: #2e7d32;
}

.permission-admin {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
}

.status-declined {
    background: #f8d7da;
    color: #721c24;
}

.status-revoked {
    background: #f8d7da;
    color: #721c24;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.permission-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.permission-info p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.permission-info p:first-child {
    margin-top: 0;
}

.permission-info p:last-child {
    margin-bottom: 0;
}

.shared-calendar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.shared-calendar-item:hover {
    background-color: #f5f5f7;
}

.shared-calendar-item.active {
    background-color: #e6f0ff;
    border-left-color: #007AFF;
}

.shared-calendar-color {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    flex-shrink: 0;
}

.shared-calendar-info {
    flex: 1;
    min-width: 0;
}

.shared-calendar-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shared-calendar-owner {
    font-size: 12px;
    color: #666;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-shares {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.no-shares p {
    margin: 0;
}

/* Team Share Button in Sidebar */
.nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nav-section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-icon-sm {
    width: 24px;
    height: 24px;
    border: none;
    background: #007AFF;
    color: white;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-sm:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Responsive Design for Team Sharing */
@media (max-width: 768px) {
    .team-share-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        border-right: none;
    }
    
    .tab-btn.active {
        border-bottom-color: #f0f0f0;
        border-left: 3px solid #007AFF;
        background-color: #f8f9fa;
    }
    
    .share-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .share-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .permission-info {
        font-size: 12px;
    }
}

/* Additional shared calendar styles */
.no-shared-calendars, .error-shared-calendars {
    padding: 0.5rem 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    font-style: italic;
    list-style: none;
}

.error-shared-calendars {
    color: #dc3545;
}

/* Ensure shared calendars have consistent styling with regular calendars */
.shared-calendar-item.calendar-item {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 0.25rem 0;
}

.shared-calendar-item.calendar-item:hover {
    background-color: #f8f9fa;
}

.shared-calendar-item.calendar-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.shared-calendar-item .calendar-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.shared-calendar-item span[data-calendar-name] {
    flex: 1;
    font-weight: 500;
    line-height: 1.2;
}

.shared-calendar-item .shared-by {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

.event-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #eee; /* A subtle border for contrast */
}

/* Adjust modal-label to align better with the indicator */
.modal-label {
    display: inline-block;
    margin-right: 5px;
}