/* Compact Cloud Storage Styles */

.cloud-storage-section {
    padding: 10px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf6 100%);
    border-radius: 8px;
    border: 1px solid rgba(112, 178, 70, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Cloud button styles */
.cloud-btn {
    transition: all 0.2s ease !important;
    position: relative;
    overflow: hidden;
}

.cloud-btn:hover {
    background: #70b246 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(112, 178, 70, 0.3) !important;
    border-color: #5fa030 !important;
}

.cloud-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(112, 178, 70, 0.3) !important;
}

.cloud-btn-icon:hover {
    background: #70b246 !important;
}

/* Status indicator animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.sync-status span {
    animation: pulse 2s infinite;
}

/* Project switcher styles */
#projectSwitcher {
    cursor: pointer;
    transition: all 0.2s ease;
    background: white !important;
}

#projectSwitcher:hover {
    border-color: #5fa030 !important;
    background: #f8faf6 !important;
}

#projectSwitcher:focus {
    outline: none;
    border-color: #70b246 !important;
    box-shadow: 0 0 0 2px rgba(112, 178, 70, 0.1);
}

/* Settings checkboxes */
.cloud-compact-settings input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.cloud-compact-settings label:hover {
    color: #4CAF50;
}

/* Sync status styles */
.sync-status {
    color: #666;
}

.sync-status.success {
    color: #4CAF50;
}

.sync-status.error {
    color: #e74c3c;
}

/* Make the whole section more compact on mobile */
@media (max-width: 768px) {
    .cloud-storage-section {
        padding: 8px !important;
    }
    
    .btn-compact {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    
    .cloud-compact-settings {
        font-size: 10px !important;
    }
    
    #projectSwitcher {
        font-size: 11px !important;
        max-width: 120px !important;
    }
}

/* Ensure no scrolling needed */
.favorites-panel-content {
    overflow-x: hidden;
}

.cloud-storage-section {
    max-height: fit-content;
    overflow: visible;
}